Registrazione senza Telegram
This commit is contained in:
@@ -4999,6 +4999,9 @@ export const tools = {
|
||||
isVerified(): boolean {
|
||||
const globalStore = useGlobalStore()
|
||||
const site = globalStore.site
|
||||
if (site.confpages.enableRegMultiChoice) {
|
||||
return tools.TelegVerificato() || this.isEmailVerified()
|
||||
}
|
||||
|
||||
if (site.confpages.enabledRegNeedTelegram) {
|
||||
return tools.TelegVerificato()
|
||||
@@ -5010,7 +5013,8 @@ export const tools = {
|
||||
|
||||
Verificato() {
|
||||
const userStore = useUserStore()
|
||||
return this.isVerified() && userStore.my.verified_by_aportador
|
||||
const globalStore = useGlobalStore()
|
||||
return this.isVerified() && (userStore.my.verified_by_aportador || globalStore.site.confpages.enableRegMultiChoice)
|
||||
},
|
||||
|
||||
|
||||
|
||||
@@ -389,7 +389,13 @@ export const useUserStore = defineStore('UserStore', {
|
||||
},
|
||||
|
||||
isUserOk(): boolean {
|
||||
return this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
if (globalStore.site.confpages.enableRegMultiChoice) {
|
||||
return (this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk()) || this.my.verified_email!
|
||||
} else {
|
||||
return this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk()
|
||||
}
|
||||
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user