- controllo della @ sull'username telegram (sugli Eventi)
- controllo email di test, se funzionante o no
This commit is contained in:
@@ -5057,6 +5057,16 @@ export const tools = {
|
||||
return mystr;
|
||||
},
|
||||
|
||||
removeatIniziale(mystr: string) {
|
||||
mystr = mystr.trim()
|
||||
|
||||
// remove @ from the beginning
|
||||
if (mystr.startsWith('@')) {
|
||||
mystr = mystr.substring(1);
|
||||
}
|
||||
return mystr
|
||||
},
|
||||
|
||||
removespaces_slash(mystr: string) {
|
||||
mystr = mystr.replace(/\s+/g, '');
|
||||
mystr = mystr.replace(/\//g, '');
|
||||
@@ -5598,9 +5608,9 @@ export const tools = {
|
||||
}
|
||||
},
|
||||
|
||||
isUserOk() {
|
||||
isUserOk(anchesenonammesso: boolean = false) {
|
||||
const userStore = useUserStore();
|
||||
if (userStore) return userStore.isUserOk();
|
||||
if (userStore) return userStore.isUserOk(anchesenonammesso);
|
||||
else return false;
|
||||
},
|
||||
|
||||
@@ -5705,6 +5715,16 @@ export const tools = {
|
||||
return '';
|
||||
}
|
||||
},
|
||||
getLinkUserTelegramAportador() {
|
||||
const aportador = this.getAportadorSolidario()
|
||||
if (aportador) {
|
||||
if (userprofile.profile?.username_telegram) {
|
||||
return 'https://t.me/' + userprofile.profile.username_telegram;
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
},
|
||||
|
||||
TelegCode() {
|
||||
const userStore = useUserStore();
|
||||
|
||||
Reference in New Issue
Block a user