i am changing the password and then forwarding to /loginuser and redirect to users dashboard. i had secured this with httpbasic authentication since i am a beginner, I am using
@Autowired
DataSource dataSource;
@Bean
public PasswordEncoder passwordEncoder()
{
return new BCryptPasswordEncoder();
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.jdbcAuthentication().dataSource(dataSource).passwordEncoder(passwordEncoder());
}
I think you have a problem because your encoded password has a length < 28, from spring sources:
if (saltLength < 28) {
throw new IllegalArgumentException("Invalid salt");
}
how to fix that:
I hope that helps.