PAN-54 Left this out of previous commit somehow.
This commit is contained in:
@@ -5,12 +5,13 @@ import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Positive;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class UserCreationForm {
|
||||
@NotNull
|
||||
@NotEmpty
|
||||
@Positive
|
||||
private int userID;
|
||||
|
||||
@NotNull
|
||||
@@ -25,13 +26,6 @@ public class UserCreationForm {
|
||||
@NotEmpty
|
||||
private String confirmPassword;
|
||||
|
||||
public Boolean checkPassword(final String passwordInput, final String passwordCheck) {
|
||||
if(!passwordInput.equals(passwordCheck)) {
|
||||
return false;
|
||||
}
|
||||
else return true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@NotEmpty
|
||||
private String emailAddress;
|
||||
@@ -47,6 +41,5 @@ public class UserCreationForm {
|
||||
private String referrer; // optional
|
||||
|
||||
@NotNull
|
||||
@NotEmpty
|
||||
private boolean agreedToTerms;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user