Ignore:
Timestamp:
10/31/22 23:42:15 (2 years ago)
Author:
Gjoko <goko_kostadinov@…>
Branches:
master
Children:
044bd76
Parents:
204464d
Message:

Fix security

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/edu/gjoko/schedlr/services/PostgresUserDetailsService.java

    r204464d r763289e  
    99import org.springframework.security.core.userdetails.UserDetailsService;
    1010import org.springframework.security.core.userdetails.UsernameNotFoundException;
     11import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
    1112import org.springframework.stereotype.Service;
    1213
     
    1819
    1920    private final StakeholderRepository stakeholderRepository;
     21    private final BCryptPasswordEncoder bCryptPasswordEncoder;
    2022
    21     public PostgresUserDetailsService(StakeholderRepository stakeholderRepository) {
     23    public PostgresUserDetailsService(StakeholderRepository stakeholderRepository,
     24                                      BCryptPasswordEncoder bCryptPasswordEncoder) {
    2225        this.stakeholderRepository = stakeholderRepository;
     26        this.bCryptPasswordEncoder = bCryptPasswordEncoder;
    2327    }
    2428
Note: See TracChangeset for help on using the changeset viewer.