Skip to content

Conversation

@rostik8328-netizen
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!
let's fix some comments
Do not change java doc

*/
public boolean login(String email, String password) {
return false;
UserService userService = new UserService();

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

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"),

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

Choose a reason for hiding this comment

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

revert changes

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