Client - add password strength and suggestions

This commit is contained in:
Sam
2022-02-26 13:40:13 +01:00
parent 9bb894dc03
commit 29760e57f1
9 changed files with 302 additions and 6 deletions

View File

@ -51,9 +51,14 @@
? $t('user.ENTER_PASSWORD')
: $t('user.PASSWORD')
"
:password="formData.password"
@updatePassword="updatePassword"
@passwordError="invalidateForm"
/>
<PasswordStrength
v-if="['reset', 'register'].includes(action)"
:password="formData.password"
/>
</div>
<button type="submit" :disabled="registration_disabled">
{{ $t(buttonText) }}
@ -93,6 +98,7 @@
import { useRoute } from 'vue-router'
import PasswordInput from '@/components/Common/PasswordInput.vue'
import PasswordStrength from '@/components/Common/PasswordStength.vue'
import { AUTH_USER_STORE, ROOT_STORE } from '@/store/constants'
import { TAppConfig } from '@/types/application'
import { ILoginRegisterFormData } from '@/types/user'