falta que registre, email y tal
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
v-model="password"
|
||||
type="password"
|
||||
label="password"
|
||||
:rules="[
|
||||
(val) =>
|
||||
(val != null && val.trim().length >= 8) ||
|
||||
'Mínimo 8 caracteres',
|
||||
]"
|
||||
/>
|
||||
<q-input
|
||||
square
|
||||
@@ -65,6 +70,8 @@
|
||||
v-model="confirmpassword"
|
||||
type="password"
|
||||
label="repite password"
|
||||
error-message="No coinciden"
|
||||
:error="comprobarConfirmPassword"
|
||||
/>
|
||||
</q-form>
|
||||
</q-card-section>
|
||||
@@ -127,7 +134,9 @@ const comprobarEmail = computed(() => {
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
const comprobarConfirmPassword = computed(
|
||||
() => password.value != confirmpassword.value
|
||||
);
|
||||
const btnRegisterDisable = () => {
|
||||
if (
|
||||
username.value == null ||
|
||||
@@ -137,7 +146,11 @@ const btnRegisterDisable = () => {
|
||||
nombre.value.length < 3 ||
|
||||
email.value == null ||
|
||||
email.value.length < 7 ||
|
||||
!comprobarEmail.value
|
||||
!comprobarEmail.value ||
|
||||
password.value == null ||
|
||||
password.value.trim().length < 8 ||
|
||||
confirmpassword.value == null ||
|
||||
comprobarConfirmPassword.value
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user