Changeset 84d0fbb for trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/UserServiceImpl.java
- Timestamp:
- 12/19/21 19:39:00 (3 years ago)
- Branches:
- master
- Children:
- bdd6491
- Parents:
- 1ad8e64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/UserServiceImpl.java
r1ad8e64 r84d0fbb 9 9 import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; 10 10 import org.springframework.stereotype.Service; 11 12 import java.util.Optional; 11 13 12 14 … … 28 30 // We don't persist or show the confirmPassword 29 31 newUser.setConfirmPassword(""); 30 return this.userRepository.save(newUser);32 return this.userRepository.save(newUser); 31 33 }catch(Exception e){ 32 34 throw new UsernameAlreadyExistsException("Username '"+newUser.getUsername()+ "' already exists");
Note:
See TracChangeset
for help on using the changeset viewer.