Commit 0219b509 by Pavle Opric

ispravljen jos jednom

parent d5c14a2d
...@@ -52,9 +52,15 @@ public class Bezbednost extends WebSecurityConfigurerAdapter { ...@@ -52,9 +52,15 @@ public class Bezbednost extends WebSecurityConfigurerAdapter {
"/registration**", "/registration**",
"/js/**", "/js/**",
"/css/**", "/css/**",
"/img/**").permitAll() "/img/**").permitAll();
.anyRequest().authenticated() http.formLogin().successHandler(new AuthenticationSuccessHandler() {
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
//do nothing
}
})
//.anyRequest().authenticated()
.and() .and()
.formLogin() .formLogin()
.loginPage("/login") .loginPage("/login")
......
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