minimo 6 caratteri la registrazione username

Ridurre a 3 gli stati ContribTypes (
aggiornato il regex dell'username in fase di registrazione: caratteri speciali consentiti solo all'interno di una parola
This commit is contained in:
paoloar77
2022-02-15 12:45:53 +01:00
parent e7f65ceb16
commit 10f10d874b
18 changed files with 39 additions and 16 deletions

View File

@@ -384,7 +384,7 @@
:useinput="isInModif">
</CMySelect>
</div>
<div v-else-if="col.fieldtype === costanti.FieldType.star5">
<div v-else-if="(col.fieldtype === costanti.FieldType.star5 || col.fieldtype === costanti.FieldType.star3)">
<div v-if="isInModif">
<CMySelect
:type_out="col.field_outtype"
@@ -410,7 +410,7 @@
:color="tools.getColByLevel(myvalue)"
icon="star_border"
icon-selected="star"
:max="5"
:max="costanti.FieldType.star5 ? 5 : 3"
:readonly="true"
/>
</div>
@@ -701,7 +701,7 @@
:optlab="fieldsTable.getLabelByTable(col.jointable)">
</CMyToggleList>
</div>
<div v-else-if="col.fieldtype === costanti.FieldType.star5">
<div v-else-if="(col.fieldtype === costanti.FieldType.star5 || col.fieldtype === costanti.FieldType.star3)">
<CMySelect
:type_out="col.field_outtype"
:col="col"

View File

@@ -40,7 +40,7 @@
:label="$t('reg.password')"
:rules="[
val => !!val || $t('reg.err.required'),
val => val.length > 6 || $t('reg.err.atleast') + ' 6 ' + $t('reg.err.char'),
val => val.length > 8 || $t('reg.err.atleast') + ' 8 ' + $t('reg.err.char'),
]">
<template v-slot:prepend>

View File

@@ -18,7 +18,7 @@ import useVuelidate from '@vuelidate/core'
import { minLength, required, sameAs } from '@vuelidate/validators'
// import { ValidationRuleset } from 'vuelidate'
import { complexity, registereduser, aportadorexist } from '../../validation'
import { complexity, complexityUser, registereduser, aportadorexist } from '../../validation'
// import 'vue3-tel-input/dist/vue3-tel-input.css'
import { useRoute, useRouter } from 'vue-router'
@@ -94,6 +94,7 @@ export default defineComponent({
username: {
required,
minLength: minLength(6),
complexityUser,
registereduser,
},
terms: {

View File

@@ -136,6 +136,7 @@ export default defineComponent({
username: 1,
name: 1,
surname: 1,
mycities: 1,
'profile.img': 1,
'profile.qualifica': 1,
}