Update Password + Signup

This commit is contained in:
Paolo Arena
2021-09-19 02:59:24 +02:00
parent d1eb9a9733
commit 622bd6943d
32 changed files with 987 additions and 1145 deletions

View File

@@ -4260,14 +4260,6 @@ export const tools = {
}
console.log('errorMsg', cosa, item)
if (cosa === 'repeatpassword') {
if (item.sameAsPassword) {
if (item.sameAsPassword.$invalid) {
return t('reg.err.sameaspassword')
}
}
}
if (item.email) {
if (item.email.$invalid)
return t('reg.err.email')
@@ -4310,6 +4302,12 @@ export const tools = {
}
} else if ((cosa === 'name') || (cosa === 'surname')) {
// console.log(item);
} else if (cosa === 'repeatpassword') {
if (item.matchText) {
if (item.matchText.$invalid) {
return t('reg.err.sameaspassword')
}
}
}
return ''

View File

@@ -141,10 +141,13 @@ export const toolsext = {
const globalStore = useGlobalStore()
if (table === 'users') {
if (keystr === 'profile') {
if (subkey) { // @ts-ignore
if (subkey) {
console.log('userStore.my.profile', userStore.my.profile, 'subkey', subkey, )
// @ts-ignore
return userStore.my.profile[subkey]
}
} else if (keystr) { // @ts-ignore
// @ts-ignore
return userStore.my[keystr]
}
} else if (table === 'todos') {