- aggiornamento refreshtoken (parte 1)
- PCB: fix listino
This commit is contained in:
@@ -28,6 +28,7 @@ export const serv_constants = {
|
||||
RIS_CODE_LOGIN_OK: 1,
|
||||
RIS_ISCRIZIONE_OK: 5,
|
||||
RIS_CODE__HTTP_FORBIDDEN_INVALID_TOKEN: 403,
|
||||
RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED: 408,
|
||||
|
||||
RIS_CODE_TOKEN_RESETPASSWORD_NOT_FOUND: -23,
|
||||
|
||||
|
||||
@@ -4396,7 +4396,7 @@ export const tools = {
|
||||
},
|
||||
getheaders() {
|
||||
const userStore = useUserStore()
|
||||
return [{ name: 'x-auth', value: userStore.x_auth_token }]
|
||||
return [{ name: 'x-auth', value: userStore.x_auth_token }, { name: 'x-refrTok', value: userStore.refreshToken }]
|
||||
},
|
||||
|
||||
getextfile(filename: string) {
|
||||
@@ -8510,8 +8510,12 @@ export const tools = {
|
||||
},
|
||||
|
||||
getInvitante() {
|
||||
const invitante = tools.getCookie(tools.APORTADOR_SOLIDARIO)
|
||||
return invitante ? invitante : ''
|
||||
try {
|
||||
const invitante = tools.getCookie(tools.APORTADOR_SOLIDARIO, '')
|
||||
return invitante ? invitante : ''
|
||||
} catch (e) {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
|
||||
contieneSlash(str: string) {
|
||||
|
||||
@@ -117,6 +117,7 @@ export const toolsext = {
|
||||
leftDrawerOpen: 'ldo',
|
||||
userId: 'uid',
|
||||
token: 'tk',
|
||||
refreshToken: 'rt',
|
||||
username: 'uname',
|
||||
name: 'nm',
|
||||
surname: 'sn',
|
||||
|
||||
Reference in New Issue
Block a user