示例#1
0
 // Logueja un usuari
 public boolean correctUserLogin(String username, String password) {
   if (dataController.existUser(username, password)) {
     currentUser.username = username;
     currentUser.password = password;
     return true;
   }
   return false;
 }
示例#2
0
 public void logOut() {
   currentUser.username = "";
   currentUser.password = "";
 }
示例#3
0
 public void changePassword(String password) {
   dataController.changePassword(currentUser.username, password);
   currentUser.password = password;
 }