-
Mar 30th, 2008, 08:39 PM
#1
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.
Thanks,
Chun ping Wang.
-
Mar 31st, 2008, 04:24 AM
#2
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
#3
yeah i have userCache and remember me service configured.
-
Mar 31st, 2008, 07:38 AM
#4
-
Mar 31st, 2008, 09:11 AM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules