Changeset 1152 for trunk/grails-app/controllers
- Timestamp:
- Nov 17, 2010, 10:45:55 AM (10 years ago)
- Location:
- trunk/grails-app/controllers/dbnp/authentication
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/authentication/RegisterController.groovy
r985 r1152 46 46 String username = params.username 47 47 if (!username) { 48 flash. error = message(code: 'spring.security.ui.forgotPassword.username.missing')48 flash.userError = message(code: 'spring.security.ui.forgotPassword.username.missing') 49 49 return 50 50 } … … 52 52 def user = SecUser.findByUsername(username) 53 53 if (!user) { 54 flash. error = message(code: 'spring.security.ui.forgotPassword.user.notFound')54 flash.userError = message(code: 'spring.security.ui.forgotPassword.user.notFound') 55 55 return 56 56 } … … 79 79 def registrationCode = token ? RegistrationCode.findByToken(token) : null 80 80 if (!registrationCode) { 81 flash. error = message(code: 'spring.security.ui.resetPassword.badCode')81 flash.userError = message(code: 'spring.security.ui.resetPassword.badCode') 82 82 redirect uri: SpringSecurityUtils.securityConfig.successHandler.defaultTargetUrl 83 83 return -
trunk/grails-app/controllers/dbnp/authentication/UserController.groovy
r996 r1152 102 102 } 103 103 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])}" 105 105 redirect action: edit, id: params.id 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.