Mar 30th, 2008, 08:39 PM
sample implementation of changing password.
I look at the faq for changing password.
1.) You have to change the password.
2.) Clear user cache.
3.) Update security context holder.
Are their any sample implementation of part 2.) and part 3.) Like how would i update the security context and clear user's cache.
I have a bean call UserService which has property of UserDao in their.
Chun ping Wang.
Mar 31st, 2008, 04:24 AM
2. You don't need unless you have configured a cache.
3. Use SecurityContextHolder.getContext().setAuthenticati on(<new value>);
Mar 31st, 2008, 07:33 AM
yeah i have userCache and remember me service configured.
Mar 31st, 2008, 07:38 AM
Mar 31st, 2008, 09:11 AM
are their any static methods to return usercache like with SecurityContextHolder.getContext() to get current context and changing that.
This way i don't have to wire userCache into userService method.