Ignore:
Timestamp:
02/09/23 14:57:39 (23 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
17a2fda
Parents:
ff75720
Message:

updates to login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/config/CustomUsernamePasswordAuthenticationProvider.java

    rff75720 rcc88ec2  
    3535
    3636        UserDetails userDetails = this.userService.findByUsername(username);
    37         String realPassword = userDetails.getPassword();
    38         if (!Objects.equals(password,realPassword)) {
     37//        String realPassword = userDetails.getPassword();
     38        if (!Objects.equals(password,userDetails.getPassword())) {
    3939            throw new BadCredentialsException("Password is incorrect!");
    4040        }
Note: See TracChangeset for help on using the changeset viewer.