mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #424 from gradido/408-Untranslated-password-requirements-on-reset-password
translation password rules in Register.vue and ResetPasswort.vue fixed
This commit is contained in:
commit
6e218c00dc
@ -97,7 +97,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
||||||
<b-row class="my-4">
|
<b-row class="my-4">
|
||||||
<b-col cols="12">
|
<b-col cols="12">
|
||||||
<base-input
|
<base-input
|
||||||
@ -164,12 +163,7 @@ export default {
|
|||||||
email: '',
|
email: '',
|
||||||
agree: false,
|
agree: false,
|
||||||
},
|
},
|
||||||
rules: [
|
|
||||||
{ message: this.$t('site.signup.lowercase'), regex: /[a-z]+/ },
|
|
||||||
{ message: this.$t('site.signup.uppercase'), regex: /[A-Z]+/ },
|
|
||||||
{ message: this.$t('site.signup.minimum'), regex: /.{8,}/ },
|
|
||||||
{ message: this.$t('site.signup.one_number'), regex: /[0-9]+/ },
|
|
||||||
],
|
|
||||||
password: '',
|
password: '',
|
||||||
checkPassword: '',
|
checkPassword: '',
|
||||||
passwordVisible: false,
|
passwordVisible: false,
|
||||||
@ -231,6 +225,14 @@ export default {
|
|||||||
emailFilled() {
|
emailFilled() {
|
||||||
return this.model.email !== ''
|
return this.model.email !== ''
|
||||||
},
|
},
|
||||||
|
rules() {
|
||||||
|
return [
|
||||||
|
{ message: this.$t('site.signup.lowercase'), regex: /[a-z]+/ },
|
||||||
|
{ message: this.$t('site.signup.uppercase'), regex: /[A-Z]+/ },
|
||||||
|
{ message: this.$t('site.signup.minimum'), regex: /.{8,}/ },
|
||||||
|
{ message: this.$t('site.signup.one_number'), regex: /[0-9]+/ },
|
||||||
|
]
|
||||||
|
},
|
||||||
passwordValidation() {
|
passwordValidation() {
|
||||||
const errors = []
|
const errors = []
|
||||||
for (const condition of this.rules) {
|
for (const condition of this.rules) {
|
||||||
|
|||||||
@ -90,12 +90,6 @@ export default {
|
|||||||
name: 'reset',
|
name: 'reset',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
rules: [
|
|
||||||
{ message: this.$t('site.signup.lowercase'), regex: /[a-z]+/ },
|
|
||||||
{ message: this.$t('site.signup.uppercase'), regex: /[A-Z]+/ },
|
|
||||||
{ message: this.$t('site.signup.minimum'), regex: /.{8,}/ },
|
|
||||||
{ message: this.$t('site.signup.one_number'), regex: /[0-9]+/ },
|
|
||||||
],
|
|
||||||
password: '',
|
password: '',
|
||||||
checkPassword: '',
|
checkPassword: '',
|
||||||
passwordVisible: false,
|
passwordVisible: false,
|
||||||
@ -137,6 +131,14 @@ export default {
|
|||||||
passwordsFilled() {
|
passwordsFilled() {
|
||||||
return this.password !== '' && this.checkPassword !== ''
|
return this.password !== '' && this.checkPassword !== ''
|
||||||
},
|
},
|
||||||
|
rules() {
|
||||||
|
return [
|
||||||
|
{ message: this.$t('site.signup.lowercase'), regex: /[a-z]+/ },
|
||||||
|
{ message: this.$t('site.signup.uppercase'), regex: /[A-Z]+/ },
|
||||||
|
{ message: this.$t('site.signup.minimum'), regex: /.{8,}/ },
|
||||||
|
{ message: this.$t('site.signup.one_number'), regex: /[0-9]+/ },
|
||||||
|
]
|
||||||
|
},
|
||||||
passwordValidation() {
|
passwordValidation() {
|
||||||
const errors = []
|
const errors = []
|
||||||
for (const condition of this.rules) {
|
for (const condition of this.rules) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user