-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new Method #1060
base: master
Are you sure you want to change the base?
Add new Method #1060
Conversation
@@ -13,7 +13,15 @@ public String getEmail() { | |||
return email; | |||
} | |||
|
|||
public void setEmail(String email) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
public String getPassword() { | ||
return password; | ||
} | ||
|
||
public void setPassword(String password) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
if (user == null) { | ||
return false; | ||
} | ||
return user.getPassword().equals(password); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return user.getPassword().equals(password); | |
return user != null && user.getPassword().equals(password); |
public boolean login(String email, String password) { | ||
return false; | ||
User user = userService.findByEmail(email); | ||
if (user == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (user == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you make this validation on 29th line, so this check is redundant
public boolean login(String email, String password) { | ||
return false; | ||
User user = userService.findByEmail(email); | ||
if (user == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not fixed
if (user == null) { | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (user == null) { | |
return false; | |
} |
public boolean login(String email, String password) { | ||
return false; | ||
User user = userService.findByEmail(email); | ||
if (user == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not fixed
public boolean login(String email, String password) { | ||
return false; | ||
User user = userService.findByEmail(email); | ||
if (user == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you make this validation on 29th line, so this check is redundant
No description provided.