- Timestamp:
- Nov 17, 2010, 10:45:55 AM (12 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.