Skip to content

Commit

Permalink
Reverse commit-ish: Design fault, used email and not a username as lo…
Browse files Browse the repository at this point in the history
…gg in paramater. My bad
  • Loading branch information
AdrianBalunan committed Apr 16, 2026
1 parent 5c6db88 commit 04717eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public boolean login(String username, String password){
* username is already taken or the database operation failed
*/
public boolean register(String displayName, String username, String email, String password ){
User newUser = new User(displayName, username, email, password, Role.NORMAL_USER, new Settings(), new Inbox());
User newUser = new User(username, email, password, Role.NORMAL_USER, new Settings(), new Inbox());

if(userDataReader.isUsernameTaken(username)){
if(userDataReader.isEmailTaken(username)){
return false;
}

Expand Down

0 comments on commit 04717eb

Please sign in to comment.