From 622bd6943dfac29c41a7f7f346d2b05ceac60ef1 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Sun, 19 Sep 2021 02:59:24 +0200 Subject: [PATCH] Update Password + Signup --- .env.development | 6 +- .file.out.txt.kate-swp | Bin 151 -> 0 bytes package.json | 44 +- src/App.ts | 4 +- src/components/CMyFieldDb/CMyFieldDb.ts | 12 +- src/components/CMyFieldDb/CMyFieldDb.vue | 141 +- src/components/CMyPopupEdit/CMyPopupEdit.ts | 4 +- src/components/CMyPopupEdit/CMyPopupEdit.vue | 84 +- src/components/CShareWithUs/CShareWithUs.ts | 4 +- src/components/CSignIn/CSignIn-validate.ts | 25 +- src/components/CSignUp/CSignUp-validate.ts | 41 - src/components/CSignUp/CSignUp.ts | 39 +- src/components/CTitleBanner/CTitleBanner.vue | 4 +- src/components/Header/Header.ts | 1 + src/mixins/mixin-base.ts | 6 +- src/statics/lang/it.js | 2 +- src/store/Modules/tools.ts | 14 +- src/store/Modules/toolsext.ts | 5 +- src/store/UserStore.ts | 129 +- src/views/admin/dbop/dbop.vue | 12 +- src/views/email/unsubscribe/unsubscribe.ts | 2 +- src/views/login/signup/signup-validate.ts | 37 - src/views/login/signup/signup.vue | 2 +- src/views/login/vreg/vreg.vue | 8 +- .../projects/proj-list/proj-list.vue.off | 2 +- src/views/requestresetpwd/requestresetpwd.ts | 2 +- .../request-resetpwd-validate.ts | 17 - src/views/updatepassword/updatepassword.ts | 31 +- src/views/updatepassword/updatepassword.vue | 2 + src/views/user/profile/profile.ts | 2 + src/views/user/profile/profile.vue | 96 +- yarn.lock | 1354 ++++++++--------- 32 files changed, 987 insertions(+), 1145 deletions(-) delete mode 100644 .file.out.txt.kate-swp delete mode 100755 src/components/CSignUp/CSignUp-validate.ts delete mode 100755 src/views/login/signup/signup-validate.ts delete mode 100755 src/views/updatepassword/request-resetpwd-validate.ts diff --git a/.env.development b/.env.development index cf696866..bcfab9b1 100755 --- a/.env.development +++ b/.env.development @@ -15,9 +15,9 @@ MONGODB_HOST="http://localhost:3000" LOGO_REG="freeplanet-logo-full.svg" TEST_NAME="Paolo" TEST_SURNAME="Arena" -TEST_EMAIL="paolo.arena77@gmail.com" -TEST_USERNAME="" -TEST_PASSWORD="" +TEST_EMAIL="paolo@freeplanet.app" +TEST_USERNAME="paoloar77" +TEST_PASSWORD="passpao1fr@1A" TEST_APORTADOR="" PUBLICKEY_PUSH='BGxRrFWnPoa_ImUaWXmeEOFVI9VNKVKaAPsvsM1XY6wn24yxp9MyOQ4crNYCJKxSXV65Y1GblW5_VLoamedcZ1I' IN_CONSTRUCTION="0" diff --git a/.file.out.txt.kate-swp b/.file.out.txt.kate-swp deleted file mode 100644 index aa12db24a895c68190c1f391f510126823e51c9b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?VnIU@9Wp~B6rzf<4UN$Q3Qeb?eTQ63x) zl;Htl2G?L$Foze$@dPsXKpY@oEN~5m@fkt { + .then((loadstorage: any) => { if (loadstorage) { diff --git a/src/components/CMyFieldDb/CMyFieldDb.ts b/src/components/CMyFieldDb/CMyFieldDb.ts index 72035e76..292c5059 100755 --- a/src/components/CMyFieldDb/CMyFieldDb.ts +++ b/src/components/CMyFieldDb/CMyFieldDb.ts @@ -9,6 +9,11 @@ import { tools } from '@store/Modules/tools' import { toolsext } from '@store/Modules/toolsext' import { costanti } from '@costanti' import MixinBase from '../../mixins/mixin-base' +import { CMyEditor } from '@/components/CMyEditor' +import { CMySelect } from '@/components/CMySelect' +import { CMyChipList } from '@/components/CMyChipList' +import { CMyToggleList } from '@/components/CMyToggleList' +import { CDateTime } from '@/components/CDateTime' export default defineComponent({ name: 'CMyFieldDb', @@ -66,7 +71,7 @@ export default defineComponent({ default: '', }, }, - // components: { CMyEditor, CMySelect, CMyChipList, CMyToggleList, CDateTime }, + components: { CMyEditor, CMySelect, CMyChipList, CMyToggleList, CDateTime }, setup(props, { emit }) { const $q = useQuasar() const { t } = useI18n() @@ -172,7 +177,7 @@ export default defineComponent({ } function myvalprinted() { - return visuValByType(myvalue) + return visuValByType(myvalue.value) } function savefield(value: any, initialval: any) { @@ -220,6 +225,9 @@ export default defineComponent({ col, countryname, onInput, + tools, + costanti, + } }, }) diff --git a/src/components/CMyFieldDb/CMyFieldDb.vue b/src/components/CMyFieldDb/CMyFieldDb.vue index 198c467c..e9080e14 100755 --- a/src/components/CMyFieldDb/CMyFieldDb.vue +++ b/src/components/CMyFieldDb/CMyFieldDb.vue @@ -8,10 +8,10 @@
+ :src="myimg" + class="text-center" + style="height: 50px; width: 50px;" + :alt="title">
{{ title }}
@@ -20,7 +20,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
+ dark color="green" v-model="myvalue" :label="col.title" + @input="savefieldboolean">
-
+
-
+
-
+
+ v-model="myvalue" + autogrow + @keyup.enter.stop + autofocus>
-
+
+ v-model="myvalue" + type="password" + @keyup.enter.stop + autofocus>
-
+
+ v-model="myvalue" type="number" + autofocus>
-
+
+ label="Ore" v-model:value="myvalue" + optval="_id" optlab="label" + :useinput="false" + o :options="tools.SelectHours">
-
+
+ :label="col.title" + :options="db_fieldsTable.getTableJoinByName(col.jointable)" + v-model:value="myvalue" + :optval="db_fieldsTable.getKeyByTable(col.jointable)" + :optlab="db_fieldsTable.getLabelByTable(col.jointable)">
-
+
-
+
+ :label="col.title" + v-model:value="myvalue" + :optval="db_fieldsTable.getKeyByTable(col.jointable)" + :optlab="db_fieldsTable.getLabelByTable(col.jointable)" + :options="db_fieldsTable.getTableJoinByName(col.jointable)" + :useinput="false">
-
+
- - + -->
@@ -215,10 +214,10 @@ label="Ore" v-model:value="myvalue"
-
+
- - + -->
-
+
+ :label="col.title" + :options="db_fieldsTable.getTableJoinByName(col.jointable)" + v-model:value="myvalue" + :optval="db_fieldsTable.getKeyByTable(col.jointable)" + :optlab="db_fieldsTable.getLabelByTable(col.jointable)" + :isarray="true">
-
+
diff --git a/src/components/CMyPopupEdit/CMyPopupEdit.ts b/src/components/CMyPopupEdit/CMyPopupEdit.ts index 4737f974..36f0673b 100755 --- a/src/components/CMyPopupEdit/CMyPopupEdit.ts +++ b/src/components/CMyPopupEdit/CMyPopupEdit.ts @@ -170,7 +170,7 @@ export default defineComponent({ function SaveValueInt(newVal: any, valinitial: any) { - // console.log('SaveValueInt', newVal, valinitial) + console.log('SaveValueInt', newVal, valinitial) // Update value in table memory if (props.subfield !== '') { @@ -192,6 +192,7 @@ export default defineComponent({ } function Savedb(newVal: any, valinitial: any) { + console.log('Savedb') if (props.col.fieldtype === costanti.FieldType.boolean) { // console.log('myvalue', myvalue, newVal, myvalueprec) @@ -330,6 +331,7 @@ export default defineComponent({ selectcountry, intcode_change, tools, + costanti, fieldsTable, onInput, } diff --git a/src/components/CMyPopupEdit/CMyPopupEdit.vue b/src/components/CMyPopupEdit/CMyPopupEdit.vue index 79ff411b..725ea8c9 100755 --- a/src/components/CMyPopupEdit/CMyPopupEdit.vue +++ b/src/components/CMyPopupEdit/CMyPopupEdit.vue @@ -2,7 +2,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -145,33 +145,33 @@
-
+
-
+
-
+
{{ myvalue }}
-
+
{{ myvalue }}
- + - +
-
+
-
+
-
+
-
+
-
+
@@ -245,7 +245,7 @@
-
+
+ + myvalue: {{ myvalue}} -
+
{{ visuValByType(myvalue, col, row) }}
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
join: {{ col.jointable }}
rec.description !== descr) + userStore.my.profile.myshares = userStore.my.profile.myshares.filter((rec: any) => rec.description !== descr) const mydata = { 'profile.myshares': userStore.my.profile.myshares @@ -222,7 +222,7 @@ export default defineComponent({ if (userStore.my.profile.myshares) { if (userStore.my.profile.myshares.length === 0) return false - return userStore.my.profile.myshares.find((rec) => rec.description.toLowerCase() === descr.toLowerCase()) + return userStore.my.profile.myshares.find((rec: any) => rec.description.toLowerCase() === descr.toLowerCase()) } return null } diff --git a/src/components/CSignIn/CSignIn-validate.ts b/src/components/CSignIn/CSignIn-validate.ts index 52f32587..391ed568 100755 --- a/src/components/CSignIn/CSignIn-validate.ts +++ b/src/components/CSignIn/CSignIn-validate.ts @@ -1,17 +1,20 @@ import { ISigninOptions } from 'model' import { required, minLength } from '@vuelidate/validators' +import { computed } from 'vue' export type TSignin = { signin: ISigninOptions, validationGroup: string[] } -export const validations = { - signin: { - password: { - required, - minLength: minLength(8), +export const validations = computed(() => { + return { + signin: { + password: { + required, + minLength: minLength(8), + }, + username: { + required, + minLength: minLength(6), + }, }, - username: { - required, - minLength: minLength(6), - }, - }, -} + } +}) diff --git a/src/components/CSignUp/CSignUp-validate.ts b/src/components/CSignUp/CSignUp-validate.ts deleted file mode 100755 index bac28fe9..00000000 --- a/src/components/CSignUp/CSignUp-validate.ts +++ /dev/null @@ -1,41 +0,0 @@ -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 interface TSignup { - signup: ISignupOptions, - validationGroup: string[] -} - -export const validations = { - repeatPassword: { - required, - sameAsPassword: sameAs('password'), - }, - password: { - required, - minLength: minLength(8), - complexity, - }, - username: { - required, - minLength: minLength(6), - registereduser, - }, - name: { - required, - }, - surname: { - required, - }, - email: { - email, - registeredemail, - required, - }, - terms: { - required, - }, -} diff --git a/src/components/CSignUp/CSignUp.ts b/src/components/CSignUp/CSignUp.ts index 3914ee52..436e7d07 100755 --- a/src/components/CSignUp/CSignUp.ts +++ b/src/components/CSignUp/CSignUp.ts @@ -1,7 +1,6 @@ import { tools } from '@store/Modules/tools' import { ISignupOptions } from 'model' -import { validations, TSignup } from './CSignUp-validate' import { Logo } from '../../components/logo' @@ -16,8 +15,11 @@ import { DefaultProfile, useUserStore } from '@store/UserStore' import useValidate from '@vuelidate/core' import useVuelidate from '@vuelidate/core' -import 'vue3-tel-input/dist/vue3-tel-input.css' +import { email, minLength, required, sameAs } from '@vuelidate/validators' +// import { ValidationRuleset } from 'vuelidate' +import { complexity, registeredemail, registereduser } from '../../validation' +import 'vue3-tel-input/dist/vue3-tel-input.css' // import {Loading, QSpinnerFacebook, QSpinnerGears} from 'quasar' @@ -63,6 +65,39 @@ export default defineComponent({ aportador_solidario: '', }) + const validations: any = computed(() => { + return { + repeatPassword: { + required, + repeatPassword: sameAs(signup.password), + }, + password: { + required, + minLength: minLength(8), + complexity, + }, + username: { + required, + minLength: minLength(6), + registereduser, + }, + name: { + required, + }, + surname: { + required, + }, + email: { + email, + registeredemail, + required, + }, + terms: { + required, + }, + } + }) + // @ts-ignore const v$ = useVuelidate(validations, signup) diff --git a/src/components/CTitleBanner/CTitleBanner.vue b/src/components/CTitleBanner/CTitleBanner.vue index 711e9f43..53be5661 100755 --- a/src/components/CTitleBanner/CTitleBanner.vue +++ b/src/components/CTitleBanner/CTitleBanner.vue @@ -3,7 +3,7 @@ @@ -12,7 +12,7 @@ {{ title }} diff --git a/src/components/Header/Header.ts b/src/components/Header/Header.ts index 8da307a2..bd49e52c 100755 --- a/src/components/Header/Header.ts +++ b/src/components/Header/Header.ts @@ -473,6 +473,7 @@ export default defineComponent({ getNumMsgUnread, getMsgText, paotest, + logoutHandler, } }, diff --git a/src/mixins/mixin-base.ts b/src/mixins/mixin-base.ts index e7f09506..f385abb7 100755 --- a/src/mixins/mixin-base.ts +++ b/src/mixins/mixin-base.ts @@ -45,7 +45,7 @@ export default function () { const $q = useQuasar() const { t } = useI18n() - // console.log('setValDb', key, value, serv, table, subkey) + console.log('setValDb', key, value, serv, table, subkey) let mydatatosave: IDataPass | null = null if (table === 'users') { const myid = userStore.my._id @@ -121,7 +121,7 @@ export default function () { }, ) } - // console.log('myrec', myrec) + console.log('myrec', myrec) mydatatosave = { // @ts-ignore @@ -149,7 +149,7 @@ export default function () { } } - // console.log('mydatatosave', mydatatosave) + console.log('mydatatosave', mydatatosave) // @ts-ignore globalStore.saveFieldValue(mydatatosave).then((esito) => { diff --git a/src/statics/lang/it.js b/src/statics/lang/it.js index 3993b6d2..79937064 100755 --- a/src/statics/lang/it.js +++ b/src/statics/lang/it.js @@ -345,7 +345,7 @@ const msg_it = { you: 'Tu', cancella_invitato: 'Elimina Invitato', cancella_account: 'Elimina Profilo', - cancellami: 'Sei sicuro di voler Eliminare completamente la tua Registrazione su {sitename}, uscendo così dal movimento? Non potrai piu\' accedere al sito tramite i tuoi dati, Perderai la tua POSIZIONE e i Tuoi Invitati verranno REGALATI a chi ti ha invitato.', + cancellami: 'Sei sicuro di voler Eliminare completamente la tua Registrazione ed i tuoi dati su {sitename}. Non potrai piu\' accedere al sito tramite le tue credenziali.', cancellami_2: 'ULTIMO AVVISO! Vuoi uscire Definitivamente da {sitename} ?', account_cancellato: 'Il tuo Profilo è stato cancellato correttamente', regala_invitato: 'Regala Invitato', diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts index f0368e71..1bdaa148 100644 --- a/src/store/Modules/tools.ts +++ b/src/store/Modules/tools.ts @@ -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 '' diff --git a/src/store/Modules/toolsext.ts b/src/store/Modules/toolsext.ts index 9fb2c93b..f797d888 100755 --- a/src/store/Modules/toolsext.ts +++ b/src/store/Modules/toolsext.ts @@ -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') { diff --git a/src/store/UserStore.ts b/src/store/UserStore.ts index de4a8cdd..0cc9db20 100755 --- a/src/store/UserStore.ts +++ b/src/store/UserStore.ts @@ -108,28 +108,6 @@ export const useUserStore = defineStore('UserStore', { getters: { - getUserByUsername: (state: IUserState) => (username: string): IUserFields | null => { - // Check if is this User! - if (state.my.username === username) return state.my - - let trovato = null - if (state.usersList) trovato = state.usersList.find((item) => item.username === username) - - return (trovato) || null - }, - - getImgByUsername: (state: IUserState) => (username: string): string => { - if (username === '') return '' - // Check if is this User! - // @ts-ignore - const myrec = this.getUserByUsername(username) - // console.log('myrec', myrec) - if (myrec && myrec.profile && !!myrec.profile.img && myrec.profile.img !== '' && myrec.profile.img !== 'undefined') { - return myrec.profile.img - } - return '' - }, - isServerError(): boolean { return (this.servercode === toolsext.ERR_SERVERFETCH) }, @@ -137,21 +115,6 @@ export const useUserStore = defineStore('UserStore', { getServerCode: (state: IUserState): number => (state.servercode ? state.servercode : 0), getMsg: (state: IUserState): string => (state.msg ? state.msg : ''), - getNameSurnameByUserId: (state: IUserState) => (userId: string): string => { - - // @ts-ignore - const user = this.getUserByUserId(state, userId) - if (user) return `${user.name} ${user.surname}` - return `(${userId})` - }, - - getNameSurnameByUsername: (state: IUserState) => (username: string): string => { - // @ts-ignore - const user = this.getUserByUsername(state, username) - if (user) return `${user.name} ${user.surname}` - return `(${username})` - }, - getUsersList: (mystate: IUserState) => { return mystate.usersList }, @@ -169,17 +132,6 @@ export const useUserStore = defineStore('UserStore', { }, - getUserByUserId: (state: IUserState) => (userId: string): IUserFields | null => { - // Check if is this User! - if (state.my._id === userId) return state.my - - let trovato = null - - if (state.usersList) trovato = state.usersList.find((item) => item._id === userId) - - return (trovato) || null - }, - isTokenInvalid: (state: IUserState) => { try { return (state.my.tokens!.length <= 0) @@ -196,11 +148,60 @@ export const useUserStore = defineStore('UserStore', { } }, - getMsgError: (state: IUserState) => (err: number): string => { + }, + + actions: { + getUserByUsername(username: string): IUserFields | null { + // Check if is this User! + if (this.my.username === username) return this.my + + let trovato = null + if (this.usersList) trovato = this.usersList.find((item: any) => item.username === username) + + return (trovato) || null + }, + + + getImgByUsername(username: string): string { + if (username === '') return '' + // Check if is this User! + const myrec = this.getUserByUsername(username) + // console.log('myrec', myrec) + if (myrec && myrec.profile && !!myrec.profile.img && myrec.profile.img !== '' && myrec.profile.img !== 'undefined') { + return myrec.profile.img + } + return '' + }, + + getNameSurnameByUserId(userId: string): string { + + const user = this.getUserByUserId(userId) + if (user) return `${user.name} ${user.surname}` + return `(${userId})` + }, + + getNameSurnameByUsername(username: string): string { + const user = this.getUserByUsername(username) + if (user) return `${user.name} ${user.surname}` + return `(${username})` + }, + + getUserByUserId(userId: string): IUserFields | null { + // Check if is this User! + if (this.my._id === userId) return this.my + + let trovato = null + + if (this.usersList) trovato = this.usersList.find((item: any) => item._id === userId) + + return (trovato) || null + }, + + getMsgError(err: number): string { let msgerrore = '' if (err !== tools.OK) { - msgerrore = `Error [${state.servercode}]: ` - if (state.servercode === toolsext.ERR_SERVERFETCH) { + msgerrore = `Error [${this.servercode}]: ` + if (this.servercode === toolsext.ERR_SERVERFETCH) { msgerrore = translate('fetch.errore_server') } else { msgerrore = translate('fetch.errore_generico') @@ -215,9 +216,7 @@ export const useUserStore = defineStore('UserStore', { return msgerrore }, - }, - actions: { clearAuthData() { this.my = DefaultUser // resetArrToken(mystate.my.tokens) @@ -232,18 +231,6 @@ export const useUserStore = defineStore('UserStore', { return true }, - setErrorCatch(axerr: Types.AxiosError) { - try { - if (this.servercode !== toolsext.ERR_SERVERFETCH) { - this.servercode = axerr.getCode() - } - // this.msg = axerr.getMsg() - console.log('Err catch: (servercode:', axerr.getCode(), axerr.getMsgError(), ')') - } catch (e) { - console.log('Err catch:', axerr) - } - }, - async resetpwd(paramquery: any) { const mydata = { ...paramquery } @@ -265,6 +252,18 @@ export const useUserStore = defineStore('UserStore', { }, + setErrorCatch(axerr: Types.AxiosError) { + try { + if (this.servercode !== toolsext.ERR_SERVERFETCH) { + this.servercode = axerr.getCode() + } + // this.msg = axerr.getMsg() + console.log('Err catch: (servercode:', axerr.getCode(), axerr.getMsgError(), ')') + } catch (e) { + console.log('Err catch:', axerr) + } + }, + async setLangServer() { const mydata = { username: this.my.username, diff --git a/src/views/admin/dbop/dbop.vue b/src/views/admin/dbop/dbop.vue index c45a6713..1ab23758 100755 --- a/src/views/admin/dbop/dbop.vue +++ b/src/views/admin/dbop/dbop.vue @@ -6,7 +6,7 @@ title="SITO_ONLINE" mykey="SITO_ONLINE" :serv="false" - :type="tools.FieldType.boolean"> + :type="costanti.FieldType.boolean">
@@ -14,7 +14,7 @@ title="SITO_ONLINE" title="ABILITA CRONTAB (1 ora)" mykey="CRONTAB" :serv="false" - :type="tools.FieldType.boolean"> + :type="costanti.FieldType.boolean">
@@ -98,22 +98,22 @@ title="ABILITA CRONTAB (1 ora)" + :type="costanti.FieldType.number"> + :type="costanti.FieldType.number"> + :type="costanti.FieldType.boolean"> + :type="costanti.FieldType.boolean">
diff --git a/src/views/email/unsubscribe/unsubscribe.ts b/src/views/email/unsubscribe/unsubscribe.ts index 8be868d3..afb7bc46 100755 --- a/src/views/email/unsubscribe/unsubscribe.ts +++ b/src/views/email/unsubscribe/unsubscribe.ts @@ -59,7 +59,7 @@ export default defineComponent({ riscode.value = ris.code risultato.value = ris.msg - }).catch((err) => { + }).catch((err: any) => { console.log('ERR = ' + err) }) } diff --git a/src/views/login/signup/signup-validate.ts b/src/views/login/signup/signup-validate.ts deleted file mode 100755 index f8e3a58e..00000000 --- a/src/views/login/signup/signup-validate.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { ISignupOptions } from 'model' -import { email, minLength, required, sameAs } from '@vuelidate/validators' -import { complexity, registeredemail, registereduser } from '@src/validation' -// import { ValidationRuleset } from 'vuelidate' - -export interface TSignup { signup: ISignupOptions, validationGroup: string[] } - -export const validations = { - signup: { - repeatPassword: { - required, - sameAsPassword: sameAs('password'), - }, - password: { - complexity, - required, - }, - username: { - registereduser, - required, - }, - name: { - required, - }, - surname: { - required, - }, - email: { - email, - registeredemail, - required, - }, - terms: { - required, - }, - }, -} diff --git a/src/views/login/signup/signup.vue b/src/views/login/signup/signup.vue index 9afb8aad..497481ba 100755 --- a/src/views/login/signup/signup.vue +++ b/src/views/login/signup/signup.vue @@ -1,6 +1,6 @@