Skip to content

Commit 34c395a

Browse files
committed
Fix users profile
1 parent f2cf8ed commit 34c395a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

backend/src/main/java/es/codeurjc/wallypop/security/WebSecurityConfig.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected void configure(HttpSecurity http) throws Exception {
5757
http.authorizeRequests().antMatchers("/adcommercial").hasAnyRole("USER");
5858
http.authorizeRequests().antMatchers("/newcommercial").hasAnyRole("USER");
5959
http.authorizeRequests().antMatchers("/favorites").hasAnyRole("USER");
60-
http.authorizeRequests().antMatchers("/perfil").hasAnyRole("USER");
60+
http.authorizeRequests().antMatchers("/profile").hasAnyRole("USER");
6161
http.authorizeRequests().antMatchers("/yourcommercial").hasAnyRole("USER");
6262
http.authorizeRequests().antMatchers("/yourcommercialsold").hasAnyRole("USER");
6363
http.authorizeRequests().antMatchers("/yourcommercialsuccess").hasAnyRole("USER");
@@ -71,7 +71,6 @@ protected void configure(HttpSecurity http) throws Exception {
7171
http.authorizeRequests().antMatchers("/category").hasAnyRole("ADMIN");
7272
http.authorizeRequests().antMatchers("/categoryList").hasAnyRole("ADMIN");
7373
http.authorizeRequests().antMatchers("/graphic").hasAnyRole("ADMIN");
74-
http.authorizeRequests().antMatchers("/profile").hasAnyRole("ADMIN");
7574
http.authorizeRequests().antMatchers("/reports").hasAnyRole("ADMIN");
7675
http.authorizeRequests().antMatchers("/showReport").hasAnyRole("ADMIN");
7776

@@ -98,4 +97,4 @@ ServletRegistrationBean<Servlet> h2servletRegistration() {
9897
public PasswordEncoder passwordEncoder() {
9998
return new BCryptPasswordEncoder(10, new SecureRandom());
10099
}
101-
}
100+
}

backend/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
server.port = ${PORT:8443}
1+
server.port = ${PORT:8080}
22
#server.ssl.key-store = classpath:wallypop.jks
33
#server.ssl.key-store-password = secret
44
#server.ssl.key-password = secret

0 commit comments

Comments
 (0)