using a static IV

This commit is contained in:
Jason Kulatunga 2022-11-08 21:27:54 -08:00
parent 46c0e8c805
commit b51dc587da
1 changed files with 2 additions and 1 deletions

View File

@ -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)