mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix decrypt and encript
This commit is contained in:
@@ -41,7 +41,8 @@ export function SAVE({key, localStorage, instance, dataToSave}) {
|
||||
localStorage.setItem(newKey, cipherText)
|
||||
|
||||
} else {
|
||||
localStorage.setItem(prefix() + key, dataToSave)
|
||||
const stringifyData = JSON.stringify(dataToSave)
|
||||
localStorage.setItem(prefix() + key, stringifyData)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ export class ProcessesService {
|
||||
|
||||
|
||||
setHeader() {
|
||||
|
||||
console.log('CPSession.AuthorizationJwt', CPSession.AuthorizationJwt);
|
||||
|
||||
// console.log('CPSession.AuthorizationJwt', CPSession.AuthorizationJwt);
|
||||
|
||||
this.headers = new HttpHeaders();
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
|
||||
@@ -17,7 +17,7 @@ export class CPSession extends models.LocalStorage {
|
||||
}
|
||||
|
||||
// content production
|
||||
models.migrate({
|
||||
models.migrate({
|
||||
databaseName:'content-production',
|
||||
type: 'localStorage',
|
||||
version: 1,
|
||||
|
||||
Reference in New Issue
Block a user