From 4ed665fbd9dc4db1ecb6afc1a75d1818c3518186 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 20 Oct 2022 16:07:36 +0200 Subject: [PATCH] feat: refactor password reset to use a single password field --- src/views/user/PasswordReset.vue | 38 +++++--------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/src/views/user/PasswordReset.vue b/src/views/user/PasswordReset.vue index c6b397b82..fe3c73ea2 100644 --- a/src/views/user/PasswordReset.vue +++ b/src/views/user/PasswordReset.vue @@ -13,35 +13,8 @@
- -
- -
-
-
- -
- -
+ +
@@ -65,12 +38,12 @@ import {useI18n} from 'vue-i18n' import PasswordResetModel from '@/models/passwordReset' import PasswordResetService from '@/services/passwordReset' import Message from '@/components/misc/message.vue' +import Password from '@/components/input/password.vue' const {t} = useI18n({useScope: 'global'}) const credentials = reactive({ password: '', - password2: '', }) const passwordResetService = reactive(new PasswordResetService()) @@ -79,9 +52,8 @@ const successMessage = ref('') async function submit() { errorMsg.value = '' - - if (credentials.password2 !== credentials.password) { - errorMsg.value = t('user.auth.passwordsDontMatch') + + if(credentials.password === '') { return }