- controllo della @ sull'username telegram (sugli Eventi)

- controllo email di test, se funzionante o no
This commit is contained in:
Surya Paolo
2025-07-29 12:54:40 +02:00
parent 85db3b4a61
commit 6013a624f6
11 changed files with 137 additions and 65 deletions

View File

@@ -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();