other components... (2)
This commit is contained in:
17
src/views/updatepassword/request-resetpwd-validate.ts
Executable file
17
src/views/updatepassword/request-resetpwd-validate.ts
Executable file
@@ -0,0 +1,17 @@
|
||||
import { ISignupOptions } from 'model'
|
||||
import { email, minLength, required, sameAs } from '@vuelidate/validators'
|
||||
// import { ValidationRuleset } from 'vuelidate'
|
||||
import { complexity, registeredemail, registereduser, aportadorexist } from '../../validation'
|
||||
import { computed } from 'vue'
|
||||
|
||||
export const validations = computed(() => ({
|
||||
repeatPassword: {
|
||||
required,
|
||||
sameAsPassword: sameAs('password')
|
||||
},
|
||||
password: {
|
||||
required,
|
||||
minLength: minLength(8),
|
||||
complexity
|
||||
}
|
||||
}))
|
||||
Reference in New Issue
Block a user