From b51dc587dafda9380534f1a81f0d6679b061b8b6 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 8 Nov 2022 21:27:54 -0800 Subject: [PATCH] using a static IV --- frontend/src/app/pages/auth-signin/auth-signin.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/pages/auth-signin/auth-signin.component.ts b/frontend/src/app/pages/auth-signin/auth-signin.component.ts index 32bfebdc..5f9624e3 100644 --- a/frontend/src/app/pages/auth-signin/auth-signin.component.ts +++ b/frontend/src/app/pages/auth-signin/auth-signin.component.ts @@ -46,7 +46,8 @@ export class AuthSigninComponent implements OnInit { //for cloud users ONLY, skip the encryption manager. //TODO: replace Pouchdb. let userId = this.authService.GetCurrentUser().sub - return PouchdbCrypto.CryptConfig(userId, userId) + //TODO: static IV, must be removed/replaced. + return {username: userId, key: userId, config: "WyI3NUhJcEhZTXBNVXRtMHlJcnBMckhRPT0iLHsic2FsdExlbmd0aCI6MTYsIm1lbW9yeVNpemUiOjQwOTYsIml0ZXJhdGlvbnMiOjEwMCwicGFyYWxsZWxpc20iOjF9XQ=="} }) .then((cryptoConfig) => { PouchdbCrypto.StoreCryptConfig(cryptoConfig)