Changeset 1147
- Timestamp:
- Nov 16, 2010, 3:47:30 PM (13 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/authentication/UserRegistrationController.groovy
r1144 r1147 33 33 * for confirmation 34 34 */ 35 def add = { Register Command command ->35 def add = { RegisterUserCommand command -> 36 36 37 37 command.validate() … … 42 42 // Check the errors and append a link if needed 43 43 command.errors.allErrors.each { 44 if( it.code == "register Command.username.notyetconfirmed" ) {44 if( it.code == "registerUserCommand.username.notyetconfirmed" ) { 45 45 addSendUserLink = true; 46 46 } … … 277 277 if( user ) { 278 278 if( user.enabled ) { 279 return "register Command.username.unique"279 return "registerUserCommand.username.unique" 280 280 } else if( user.dateCreated.after( new Date() - DAYS_BEFORE_EXPIRY ) ) { 281 return "register Command.username.notyetconfirmed"281 return "registerUserCommand.username.notyetconfirmed" 282 282 } else { 283 283 RegistrationCode.deleteByUser(user); … … 305 305 } 306 306 307 class Register Command {307 class RegisterUserCommand { 308 308 309 309 String username -
trunk/grails-app/i18n/messages.spring-security-ui.properties
r1144 r1147 98 98 profileCommand.email.email.invalid Please provide a valid email address 99 99 100 register Command.username.unique The username already exists101 register Command.username.notyetconfirmed This account already exists but has not yet been confirmed. If you are the owner, please check your email.102 register Command.email.email.invalid Please provide a valid email address103 register Command.email.blank Please provide a valid email address100 registerUserCommand.username.unique The username already exists 101 registerUserCommand.username.notyetconfirmed This account already exists but has not yet been confirmed. If you are the owner, please check your email. 102 registerUserCommand.email.email.invalid Please provide a valid email address 103 registerUserCommand.email.blank Please provide a valid email address
Note: See TracChangeset
for help on using the changeset viewer.