Changeset a69d48c for src/main/java/com


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

Location:
src/main/java/com/example/moviezone
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/config/WebSecurityConfig.java

    rf9cc555 ra69d48c  
    3232        http.csrf().disable()
    3333                .authorizeRequests()
    34                 .antMatchers("/","/home/getFilm/**", "/home", "/assets/**", "/register", "/api/**").permitAll()
     34                .antMatchers("/","/**","/home/getFilm/**","/films","/projections" ,"/home", "/assets/**", "/register", "/api/**").permitAll()
    3535                .antMatchers("/admin/**").hasRole("ADMIN")
    3636                .anyRequest()
  • 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.