-
Notifications
You must be signed in to change notification settings - Fork 998
implemented a login method #1249
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
base: master
Are you sure you want to change the base?
implemented a login method #1249
Conversation
Elena-Bruyako
left a comment
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.
Good job!
let's fix some comments
Do not change java doc
| */ | ||
| public boolean login(String email, String password) { | ||
| return false; | ||
| UserService userService = new UserService(); |
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.
let's make UserService userService class-level variable
| * | ||
| * @param email - the input parameter | ||
| * @return - user if his email is equal to passed email. | ||
| * Return <code>null</code> if there is no suitable user |
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.
don't change docs, revert changes
| new User("[email protected]", "1234") | ||
| }; | ||
|
|
||
| private static final User[] users = new User[]{new User("[email protected]", "1234"), |
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.
revert changes
| * You should check if user credentials (login and password) are valid or not. | ||
| * All users are stored in <code>UserService</code> class. | ||
| * @param email - user's email | ||
| * Imagine that some user wants to login to your site. You should check if user credentials |
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.
revert changes
No description provided.