Ignore:
Timestamp:
02/06/23 18:12:03 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
b5ce654
Parents:
f9cc555
Message:

changes in some htmls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/service/Impl/UserServiceImpl.java

    rf9cc555 ra69d48c  
    5656       if(role.equals(Role.ROLE_ADMIN))
    5757        {
    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);
    6161        }
    6262        else
Note: See TracChangeset for help on using the changeset viewer.