我有一个用户实体,它有一个布尔“hasTmpPassword”。 在用户更改密码之前,此布尔值设置为true。 p>
使用临时密码登录后,我重定向到我的changePassword页面(使用DefaultAuthenticationSuccessHandler) p> < p>如何阻止登录用户(使用临时密码)访问网站的其他页面,并始终将他重定向到changePassword页面? p>
谢谢! p> \ n div>
I have a user entity, which has a boolean "hasTmpPassword". This boolean is set to true until the user changes its password.
After login with the temp password, I redirect to my changePassword page (with DefaultAuthenticationSuccessHandler )
How can I prevent a login user (with temp password), to access other pages of the website, and always redirect him toward the changePassword page?
Thanks!
我有一个用户实体,它有一个布尔“hasTmpPassword”。 在用户更改密码之前,此布尔值设置为true。 p>
使用临时密码登录后,我重定向到我的changePassword页面(使用DefaultAuthenticationSuccessHandler) p> < p>如何阻止登录用户(使用临时密码)访问网站的其他页面,并始终将他重定向到changePassword页面? p>
谢谢! p> \ n div>