- primo aggiornamento myreccard
- aggiunta sito germogliamo.app - aggiornato login con il parametro "browser_random" che serve per fare un login anche su 2 pagine contemporaneamente.
This commit is contained in:
@@ -4798,6 +4798,7 @@ export const tools = {
|
||||
return [
|
||||
{ name: 'x-auth', value: userStore.x_auth_token },
|
||||
{ name: 'x-refrtok', value: userStore.refreshToken },
|
||||
{ name: 'x-browser-random', value: userStore.browser_random },
|
||||
];
|
||||
},
|
||||
|
||||
@@ -11417,8 +11418,7 @@ export const tools = {
|
||||
},
|
||||
|
||||
convertinbspInSpazi(str: string) {
|
||||
return str
|
||||
.replace(/ /g, ' ') // Converti in spazi normali
|
||||
return str.replace(/ /g, ' '); // Converti in spazi normali
|
||||
},
|
||||
|
||||
convertinbspInSpaziNormali(str: string) {
|
||||
@@ -11428,6 +11428,13 @@ export const tools = {
|
||||
.trim();
|
||||
},
|
||||
|
||||
getTokenRandom() {
|
||||
// Soluzione 1: Usando Web Crypto API (moderno)
|
||||
const array = new Uint8Array(32);
|
||||
crypto.getRandomValues(array);
|
||||
return Array.from(array, (byte) => byte.toString(16).padStart(2, '0')).join('');
|
||||
},
|
||||
|
||||
// FINE !
|
||||
|
||||
// getLocale() {
|
||||
|
||||
Reference in New Issue
Block a user