java - Spring boot security add parameter to login -
i've problem, use spring boot , there i've implemented security. in securityconfig class (below method source code) i've provided username , password parameters checked during login process. need check if account activated, in db i've column 'activated' boolean value. , how provide own parameter account activated login process ?
@override protected void configure(httpsecurity http) throws exception { http.authorizerequests() .antmatchers("/").permitall() .antmatchers("/investors/**").hasanyrole("admin") .antmatchers("/search**").authenticated() .anyrequest().fullyauthenticated() .and() .formlogin() .loginpage("/login") .usernameparameter("username") < - .passwordparameter("password") < - .permitall() .and() .logout()
thanks help
Comments
Post a Comment