Skip to content

Commit

Permalink
User created by ModelMain will be added to UserManager
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-bauer committed Oct 9, 2018
1 parent f43202e commit 81c8791
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/wahlzeit/main/ModelMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ protected void createUser(String userId, String nickName, String emailAddress, S
Image image = getImageFromFile(photo);
Photo newPhoto = photoManager.createPhoto(photo.getName(), image);
user.addPhoto(newPhoto);
userManager.addClient(user);
} catch (Exception e) {
log.warning("Unable to add photo: " + photo.getAbsoluteFile());
}
Expand Down

0 comments on commit 81c8791

Please sign in to comment.