Skip to content

Commit

Permalink
pulizia
Browse files Browse the repository at this point in the history
  • Loading branch information
matteoinve committed Jul 19, 2022
1 parent 544e5b8 commit a19fd0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void login() throws IOException {
if(user != null) {
String screen = null;
Integer userType = user.getUserType();
if (userType > screens.length - 1) screen = Factory.getAccount(); // TODO: Inve farà un eccezione qui
if (userType > screens.length - 1) screen = Factory.getAccount();
else screen = screens[userType];

myContainer.setScreen(screen);
Expand Down Expand Up @@ -91,7 +91,7 @@ private void register() {
User newUser = new User();
newUser.setEmail(email.getText());
newUser.setPwd(encryption.encrypt(pwd.getText()));
newUser.setUserType(0);//TODO: Creare l'enum
newUser.setUserType(0);
service.persist(newUser);
session.setUser(newUser);
Alert alert = new Alert(Alert.AlertType.INFORMATION);
Expand Down

0 comments on commit a19fd0d

Please sign in to comment.