Skip to content
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

create function findByEmail in UserService and function login in Auth… #729

Closed

Conversation

AntonBabychP1T
Copy link

…enticationService

@ihor-jpeg ihor-jpeg self-requested a review November 1, 2023 12:44
public boolean login(String email, String password) {
UserService userService = new UserService();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make UserService class field

Comment on lines +19 to 22
if (user != null && user.getPassword().equals(password)) {
return true;
}
return false;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (user != null && user.getPassword().equals(password)) {
return true;
}
return false;
return user != null && user.getPassword().equals(password));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants