Beispiel #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;
 }
Beispiel #2
0
 public void logOut() {
   currentUser.username = "";
   currentUser.password = "";
 }
Beispiel #3
0
 public void changePassword(String password) {
   dataController.changePassword(currentUser.username, password);
   currentUser.password = password;
 }