Changeset 1b0bd1e for src/main


Ignore:
Timestamp:
02/28/23 13:12:44 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
f214198
Parents:
11d7b36
Message:

update configure

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

Legend:

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

    r11d7b36 r1b0bd1e  
    3232        http.csrf().disable()
    3333                .authorizeRequests()
    34                 .antMatchers("/","/films","/home/projections","/home/events","/home/getProjections/**","/home/films","/home/getFilm/**","/getFilm/**","/home/getEvent/**","/getEvent/**","/login","/events","/projections" ,"/home", "/assets/**", "/register", "/api/**").permitAll()
     34                .antMatchers("/","/films","/home/projections","/home/events","/home/getProjections/**","/home/films","/home/getFilm/**","/getFilm/**","/home/getEvent/**","/getEvent/**","/login","/events","/projections" ,"/home", "/assets/**", "/register", "/registerWorker","/api/**").permitAll()
    3535                .antMatchers("/home/getSeats/**","/myTickets","/home/addInterestedEvent/**","/home/deleteInterestedEvent/**","/home/addRating/**","/addRating/**","/getProjection/**","/home/makeReservation","/profileUser").hasRole("USER")
    3636                .antMatchers("/**").hasRole("ADMIN")
  • src/main/java/com/example/moviezone/model/Customer.java

    r11d7b36 r1b0bd1e  
    2727    public Customer(String password, String first_name, String last_name, String address, String contact_number, String username) {
    2828        super(password, first_name, last_name, address, contact_number, username);
     29        points=0;
    2930    }
    3031
Note: See TracChangeset for help on using the changeset viewer.