Skip to content

Hometask jv-web-security completed#673

Open
MarynaKushniruk wants to merge 2 commits into
mate-academy:masterfrom
MarynaKushniruk:master
Open

Hometask jv-web-security completed#673
MarynaKushniruk wants to merge 2 commits into
mate-academy:masterfrom
MarynaKushniruk:master

Conversation

@MarynaKushniruk
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@kozhukhovsky kozhukhovsky 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! But need small fix :)

@Override
public Driver login(String login, String password) throws AuthenticationException {
Optional<Driver> driver = driverService.findByLogin(login);
if (driver.isEmpty()) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

image


public Optional<Driver> findByLogin(String login) throws AuthenticationException {
return driverDao.findByLogin(login);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change

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.

3 participants