fix decrypt and encript

This commit is contained in:
Peter Maquiran
2023-07-10 14:12:56 +01:00
parent c6c0f84b4e
commit 8a374730d3
4 changed files with 12 additions and 11 deletions
+2 -1
View File
@@ -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)
}
}
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -17,7 +17,7 @@ export class CPSession extends models.LocalStorage {
}
// content production
models.migrate({
models.migrate({
databaseName:'content-production',
type: 'localStorage',
version: 1,