Changeset a69d48c for src/main/java/com/example/moviezone/service
- Timestamp:
- 02/06/23 18:12:03 (22 months ago)
- Branches:
- master
- Children:
- b5ce654
- Parents:
- f9cc555
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/UserServiceImpl.java
rf9cc555 ra69d48c 56 56 if(role.equals(Role.ROLE_ADMIN)) 57 57 { 58 Worker worker=new Worker(passwordEncoder.encode(password),first_name,last_name,username,email,number);59 workerRepository.save( worker);60 return userRepository.save( worker);58 User user= new User(passwordEncoder.encode(password),first_name,last_name,username,email,number); 59 workerRepository.save((Worker) user); 60 return userRepository.save(user); 61 61 } 62 62 else
Note:
See TracChangeset
for help on using the changeset viewer.