From 290b31f031814946bbcac5936d71ff250328ff0d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Jan 2019 14:07:14 +0100 Subject: [PATCH] Fix resend confirmation component --- js/src/components/Account/Login.vue | 4 +-- .../components/Account/ResendConfirmation.vue | 35 +++++++++++-------- .../components/Account/SendPasswordReset.vue | 4 +-- js/src/graphql/auth.ts | 6 ++++ js/src/utils/validators.ts | 2 +- test/support/factory.ex | 5 ++- 6 files changed, 35 insertions(+), 21 deletions(-) diff --git a/js/src/components/Account/Login.vue b/js/src/components/Account/Login.vue index f457fda6f..731d28668 100644 --- a/js/src/components/Account/Login.vue +++ b/js/src/components/Account/Login.vue @@ -64,7 +64,7 @@ import RegisterAvatar from './RegisterAvatar.vue'; import { Component, Prop, Vue } from 'vue-property-decorator'; import { LOGIN } from '@/graphql/auth'; - import { validateEmail, validateRequiredField } from '@/utils/validators'; + import { validateEmailField, validateRequiredField } from '@/utils/validators'; import { saveUserData } from '@/utils/auth'; import { ILogin } from '@/types/login.model' @@ -94,7 +94,7 @@ }; rules = { required: validateRequiredField, - email: validateEmail + email: validateEmailField }; user: any; diff --git a/js/src/components/Account/ResendConfirmation.vue b/js/src/components/Account/ResendConfirmation.vue index 119f90182..886d28096 100644 --- a/js/src/components/Account/ResendConfirmation.vue +++ b/js/src/components/Account/ResendConfirmation.vue @@ -32,6 +32,8 @@ diff --git a/js/src/components/Account/SendPasswordReset.vue b/js/src/components/Account/SendPasswordReset.vue index 5ae40b6f8..b71fef5e4 100644 --- a/js/src/components/Account/SendPasswordReset.vue +++ b/js/src/components/Account/SendPasswordReset.vue @@ -32,7 +32,7 @@