Ignore:
Timestamp:
Nov 17, 2010, 10:45:55 AM (10 years ago)
Author:
robert@…
Message:

Changed flash.error to flash.userError in the authentication part to resolve #197

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/authentication/RegisterController.groovy

    r985 r1152  
    4646                String username = params.username
    4747                if (!username) {
    48                         flash.error = message(code: 'spring.security.ui.forgotPassword.username.missing')
     48                        flash.userError = message(code: 'spring.security.ui.forgotPassword.username.missing')
    4949                        return
    5050                }
     
    5252                def user = SecUser.findByUsername(username)
    5353                if (!user) {
    54                         flash.error = message(code: 'spring.security.ui.forgotPassword.user.notFound')
     54                        flash.userError = message(code: 'spring.security.ui.forgotPassword.user.notFound')
    5555                        return
    5656                }
     
    7979                def registrationCode = token ? RegistrationCode.findByToken(token) : null
    8080                if (!registrationCode) {
    81                         flash.error = message(code: 'spring.security.ui.resetPassword.badCode')
     81                        flash.userError = message(code: 'spring.security.ui.resetPassword.badCode')
    8282                        redirect uri: SpringSecurityUtils.securityConfig.successHandler.defaultTargetUrl
    8383                        return
Note: See TracChangeset for help on using the changeset viewer.