Skip to content

Conversation

@SashaHeletei
Copy link

No description provided.

Copy link

@Elena-Bruyako Elena-Bruyako left a comment

Choose a reason for hiding this comment

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

Good job! See comments

* Return <code>null</code> if there is no suitable user
*/
public User findByEmail(String email) {
public static User findByEmail(String email) {

Choose a reason for hiding this comment

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

Suggested change
public static User findByEmail(String email) {
public User findByEmail(String email) {

*/
public boolean login(String email, String password) {
return false;
User user = UserService.findByEmail(email);

Choose a reason for hiding this comment

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

make UserService class-level variable

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