Results 1 to 5 of 5

Thread: sample implementation of changing password.

  1. #1
    Join Date
    Feb 2007
    Posts
    291

    Default 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.

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    2. You don't need unless you have configured a cache.
    3. Use SecurityContextHolder.getContext().setAuthenticati on(<new value>);

  3. #3
    Join Date
    Feb 2007
    Posts
    291

    Default

    yeah i have userCache and remember me service configured.

  4. #4
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

  5. #5
    Join Date
    Feb 2007
    Posts
    291

    Default

    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
  •