Changeset 1147


Ignore:
Timestamp:
Nov 16, 2010, 3:47:30 PM (6 years ago)
Author:
robert@…
Message:

Resolved exception with the RegisterCommand?

Location:
trunk/grails-app
Files:
2 edited

Legend:

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

    r1144 r1147  
    3333     * for confirmation
    3434     */
    35     def add = { RegisterCommand command ->
     35    def add = { RegisterUserCommand command ->
    3636               
    3737                command.validate()
     
    4242                        // Check the errors and append a link if needed
    4343                        command.errors.allErrors.each {
    44                                 if( it.code == "registerCommand.username.notyetconfirmed" ) {
     44                                if( it.code == "registerUserCommand.username.notyetconfirmed" ) {
    4545                                        addSendUserLink = true;
    4646                                }
     
    277277                if( user ) {
    278278            if( user.enabled ) {
    279                                 return "registerCommand.username.unique"
     279                                return "registerUserCommand.username.unique"
    280280                        } else if( user.dateCreated.after( new Date() - DAYS_BEFORE_EXPIRY ) ) {
    281                                 return "registerCommand.username.notyetconfirmed"
     281                                return "registerUserCommand.username.notyetconfirmed"
    282282                        } else {
    283283                                RegistrationCode.deleteByUser(user);
     
    305305}
    306306
    307 class RegisterCommand {
     307class RegisterUserCommand {
    308308
    309309        String username
  • trunk/grails-app/i18n/messages.spring-security-ui.properties

    r1144 r1147  
    9898profileCommand.email.email.invalid Please provide a valid email address
    9999
    100 registerCommand.username.unique The username already exists
    101 registerCommand.username.notyetconfirmed This account already exists but has not yet been confirmed. If you are the owner, please check your email.
    102 registerCommand.email.email.invalid Please provide a valid email address
    103 registerCommand.email.blank Please provide a valid email address
     100registerUserCommand.username.unique The username already exists
     101registerUserCommand.username.notyetconfirmed This account already exists but has not yet been confirmed. If you are the owner, please check your email.
     102registerUserCommand.email.email.invalid Please provide a valid email address
     103registerUserCommand.email.blank Please provide a valid email address
Note: See TracChangeset for help on using the changeset viewer.