- controllo della @ sull'username telegram (sugli Eventi)
- controllo email di test, se funzionante o no
This commit is contained in:
@@ -794,7 +794,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return this.my.profile.teleg_id! > 0 || this.my.profile.teleg_id_old! > 0;
|
||||
},
|
||||
|
||||
isUserOk(): boolean {
|
||||
isUserOk(anchesenonammesso: boolean = false): boolean {
|
||||
const globalStore = useGlobalStore();
|
||||
|
||||
if (
|
||||
@@ -803,7 +803,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
) {
|
||||
return (
|
||||
((this.isTelegIdOk() && this.isUsernameTelegOk()) || this.my.verified_email!) &&
|
||||
this.my.verified_by_aportador!
|
||||
(anchesenonammesso || this.my.verified_by_aportador!)
|
||||
);
|
||||
} else {
|
||||
//if (tools.getAskToVerifyReg()) {
|
||||
@@ -813,13 +813,15 @@ export const useUserStore = defineStore('UserStore', {
|
||||
) {
|
||||
return (
|
||||
this.isTelegIdOk() &&
|
||||
this.my.verified_by_aportador! &&
|
||||
(anchesenonammesso || this.my.verified_by_aportador!) &&
|
||||
this.isUsernameTelegOk()
|
||||
);
|
||||
} else {
|
||||
return this.my.verified_email!;
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
// return this.my.verified_email! && this.isTelegIdOk() && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user