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

Location:
trunk/grails-app/controllers/dbnp/authentication
Files:
2 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
  • trunk/grails-app/controllers/dbnp/authentication/UserController.groovy

    r996 r1152  
    102102                }
    103103                catch (DataIntegrityViolationException e) {
    104                         flash.error = "${message(code: 'default.not.deleted.message', args: [message(code: 'user.label', default: 'User'), params.id])}"
     104                        flash.userError = "${message(code: 'default.not.deleted.message', args: [message(code: 'user.label', default: 'User'), params.id])}"
    105105                        redirect action: edit, id: params.id
    106106                }
Note: See TracChangeset for help on using the changeset viewer.