Changeset 7bc8942 in Git for src/main/java/com/wediscussmovies/project/service/impl/UserServiceImpl.java
- Timestamp:
- 01/16/22 16:46:28 (3 years ago)
- Branches:
- main
- Children:
- 7fafead
- Parents:
- 2a5d6a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/service/impl/UserServiceImpl.java
r2a5d6a3 r7bc8942 1 1 package com.wediscussmovies.project.service.impl; 2 2 3 import com.wediscussmovies.project.model.PasswordEncoder; 3 4 import com.wediscussmovies.project.model.User; 4 5 import com.wediscussmovies.project.model.exception.PasswordsDontMatchException; … … 11 12 12 13 import javax.servlet.http.HttpServletRequest; 14 import java.security.NoSuchAlgorithmException; 13 15 import java.util.Optional; 14 16 … … 42 44 return Optional.empty(); 43 45 } 44 46 if(userRepository.findByUsername(username).isPresent()){ 45 47 request.getSession().setAttribute("error", new UserWithUsernameAlreadyExists(username).getMessage()); 46 48 return Optional.empty();
Note:
See TracChangeset
for help on using the changeset viewer.