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.NotEmpty;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
import javax.validation.constraints.Positive;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
public class UserCreationForm {
|
public class UserCreationForm {
|
||||||
@NotNull
|
@NotNull
|
||||||
@NotEmpty
|
@Positive
|
||||||
private int userID;
|
private int userID;
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@@ -25,13 +26,6 @@ public class UserCreationForm {
|
|||||||
@NotEmpty
|
@NotEmpty
|
||||||
private String confirmPassword;
|
private String confirmPassword;
|
||||||
|
|
||||||
public Boolean checkPassword(final String passwordInput, final String passwordCheck) {
|
|
||||||
if(!passwordInput.equals(passwordCheck)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@NotEmpty
|
@NotEmpty
|
||||||
private String emailAddress;
|
private String emailAddress;
|
||||||
@@ -47,6 +41,5 @@ public class UserCreationForm {
|
|||||||
private String referrer; // optional
|
private String referrer; // optional
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@NotEmpty
|
|
||||||
private boolean agreedToTerms;
|
private boolean agreedToTerms;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user