From 495e4d7bece2d661b73dac4e484d9ef11fdf304f Mon Sep 17 00:00:00 2001 From: hay-kot Date: Thu, 11 Mar 2021 22:35:31 -0800 Subject: [PATCH] sign up data validation --- frontend/src/components/Login/SignUpForm.vue | 23 ++++++++++++++++---- mealie/routes/users/sign_up.py | 6 ++--- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/Login/SignUpForm.vue b/frontend/src/components/Login/SignUpForm.vue index b81a15d6f..3ae885fdf 100644 --- a/frontend/src/components/Login/SignUpForm.vue +++ b/frontend/src/components/Login/SignUpForm.vue @@ -21,12 +21,13 @@ have a valid invitation link. If you haven't recieved an invitation you are unable to sign-up. To recieve a link, contact the sites administrator. - + @@ -35,6 +36,7 @@ light="light" prepend-icon="mdi-email" validate-on-blur + :rules="[existsRule, emailRule]" :label="$t('login.email')" type="email" > @@ -43,10 +45,10 @@ light="light" class="mb-2s" prepend-icon="mdi-lock" + validate-on-blur :label="$t('login.password')" :type="showPassword ? 'text' : 'password'" - :append-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'" - @click:append="showPassword = !showPassword" + :rules="[minRule]" > @@ -80,7 +85,9 @@