@@ -42,7 +42,7 @@ public UserRegistrationController(UserAccountService userAccountService, UserAcc
42
42
public final String registerGet (Model model ) {
43
43
log .info ("registerGet" );
44
44
UserAccountRegistrationForm userAccountRegistrationForm = new UserAccountRegistrationForm ();
45
- model .addAttribute ("userRegistrationForm " , userAccountRegistrationForm );
45
+ model .addAttribute ("userAccountRegistrationForm " , userAccountRegistrationForm );
46
46
return "user/register/registerForm" ;
47
47
}
48
48
@@ -67,7 +67,7 @@ public final String registerPost(
67
67
userAccountRegistrationService .registrationCheckIfResponseIsInTime (userAccountRegistrationForm .getEmail ());
68
68
if (userAccountService .isEmailAvailable (userAccountRegistrationForm .getEmail ())) {
69
69
if (userAccountRegistrationService .registrationIsRetryAndMaximumNumberOfRetries (userAccountRegistrationForm .getEmail ())) {
70
- String objectName = "userRegistrationForm " ;
70
+ String objectName = "userAccountRegistrationForm " ;
71
71
String field = "email" ;
72
72
String defaultMessage = "Maximum Number of Retries reached." ;
73
73
FieldError e = new FieldError (objectName , field , defaultMessage );
@@ -78,7 +78,7 @@ public final String registerPost(
78
78
return "user/register/registerConfirmSentMail" ;
79
79
}
80
80
} else {
81
- String objectName = "userRegistrationForm " ;
81
+ String objectName = "userAccountRegistrationForm " ;
82
82
String field = "email" ;
83
83
String defaultMessage = "Email is already in use." ;
84
84
FieldError e = new FieldError (objectName , field , defaultMessage );
@@ -142,7 +142,7 @@ public final String registerConfirmPost(
142
142
return "user/register/registerConfirmFinished" ;
143
143
} else {
144
144
if (!passwordsMatch ) {
145
- String objectName = "userAccountForm " ;
145
+ String objectName = "userAccountRegistrationForm " ;
146
146
String field = "userPassword" ;
147
147
String defaultMessage = "Passwords aren't the same." ;
148
148
FieldError e = new FieldError (objectName , field , defaultMessage );
0 commit comments