Commit 14c798af by Bogdan Andjelkovic

dodat default login page

parent 49bac211
......@@ -43,7 +43,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter
http.authorizeRequests()
.antMatchers("/proba").authenticated()
.anyRequest().permitAll()
.and().formLogin()
.and().formLogin().loginPage("/login").permitAll()
.usernameParameter("email")
.defaultSuccessUrl("/proba")
.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