From df782ec5042cd74053c87daa967c711e856367db Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 10 Oct 2020 12:07:04 +0300 Subject: [PATCH] Add notes about missing input form validations Signed-off-by: Pekka Helenius --- .../main/java/com/fjordtek/bookstore/model/auth/User.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java index cfd1f0f..5a03895 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/User.java @@ -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 + ")"