Ignore:
Timestamp:
Mar 14, 2009, 10:04:39 AM (16 years ago)
Author:
gav
Message:

Add changePassword under options view so that users can change their own password.
Adjust for password validation, userCache etc. Only a small bug during "edit" is left on second "update" command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TaskRewrite/src/grails-app/conf/SecurityConfig.groovy

    r71 r73  
    4646    alwaysUseDefaultTargetUrl = true
    4747
     48    //User caching, turned this off so that password changes take effect.
     49    //It would appear that user is still in the session as logout/login
     50    // is still required for role changes to take effect.
     51    //If this option causes high database load try:
     52    //  import org.acegisecurity.providers.dao.DaoAuthenticationProvider
     53    //  import org.acegisecurity.context.SecurityContextHolder
     54    //  DaoAuthenticationProvider daoAuthenticationProvider
     55    //  def user = SecurityContextHolder.context.authentication.principal.username
     56    //  daoAuthenticationProvider.userCache.removeUserFromCache(user)
     57    //  in logout controller and perhaps on password change and role change.
     58    cacheUsers = false
     59
    4860}
Note: See TracChangeset for help on using the changeset viewer.