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