Skip to content

Commit

Permalink
[Fix] :: variable name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgwk42 committed May 12, 2024
1 parent 6a3c94c commit a140dc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public void adminSignUp(SignUpRequest request) {
public JsonWebTokenResponse signIn(SignInRequest request) {
if(userRepository.findByEmail(request.getEmail()).isEmpty())
throw UserNotFoundException.EXCEPTION;
String adminPassword = userRepository.getByEmail(request.getEmail()).getPassword();
if (!encoder.matches(request.getPassword(), adminPassword))
String password = userRepository.getByEmail(request.getEmail()).getPassword();
if (!encoder.matches(request.getPassword(), password))
throw PasswordWrongException.EXCEPTION;
User user = userRepository
.findByEmail(request.getEmail())
Expand Down

0 comments on commit a140dc8

Please sign in to comment.