Browse Source

Add notes about missing input form validations

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
df782ec504
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java

+ 8
- 0
bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java View File

@ -53,6 +53,10 @@ public class User {
////////////////////
/*
* TODO: add regex validation and other constraints
* if sign up form is implemented.
*/
@Column(
unique = true,
nullable = false,
@ -60,6 +64,10 @@ public class User {
)
private String username;
/*
* TODO: add minimum length validation and other constraints
* if sign up form is implemented.
*/
@Column(
nullable = false,
columnDefinition = "NVARCHAR(" + strMaxPasswd + ")"


Loading…
Cancel
Save