gradido/frontend/src/components/Inputs/InputPasswordConfirmation.vue
MateuszMichalowski 76e5994441
fix(frontend): migration remaining fixes (#3356)
* fix(frontend): fix password update validation, cleanup code, fix pipe operator in i18n issue, fixes to redeem via code.

* fix(frontend): fix transaction links

* fix(frontend): revert changes in admin components file

* fix(frontend): linters fixes
2024-08-19 10:11:17 +02:00

55 lines
1.4 KiB
Vue

<template>
<div>
<BRow class="mb-2">
<BCol>
<input-password
id="new-password-input-field"
:rules="{
required: true,
containsLowercaseCharacter: true,
containsUppercaseCharacter: true,
containsNumericCharacter: true,
atLeastEightCharacters: true,
atLeastOneSpecialCharacter: true,
noWhitespaceCharacters: true,
}"
:label="register ? $t('form.password') : $t('form.password_new')"
immediate
name="newPassword"
:placeholder="register ? $t('form.password') : $t('form.password_new')"
allow-full-validation
/>
</BCol>
</BRow>
<BRow class="mb-2">
<BCol>
<input-password
id="repeat-new-password-input-field"
:rules="{
required: true,
samePassword: 'newPassword',
}"
:label="register ? $t('form.passwordRepeat') : $t('form.password_new_repeat')"
immediate
name="newPasswordRepeat"
:placeholder="register ? $t('form.passwordRepeat') : $t('form.password_new_repeat')"
/>
</BCol>
</BRow>
</div>
</template>
<script setup>
import InputPassword from './InputPassword'
defineProps({
modelValue: {
type: Object,
required: true,
},
register: {
type: Boolean,
required: false,
},
})
</script>