Commit 14c798af by Bogdan Andjelkovic

dodat default login page

parent 49bac211
...@@ -43,7 +43,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter ...@@ -43,7 +43,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter
http.authorizeRequests() http.authorizeRequests()
.antMatchers("/proba").authenticated() .antMatchers("/proba").authenticated()
.anyRequest().permitAll() .anyRequest().permitAll()
.and().formLogin() .and().formLogin().loginPage("/login").permitAll()
.usernameParameter("email") .usernameParameter("email")
.defaultSuccessUrl("/proba") .defaultSuccessUrl("/proba")
.permitAll() .permitAll()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment