mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Cache S/MIME passphrases when "remember" is checked
This commit is contained in:
parent
9941ff61f7
commit
453e73f71a
5 changed files with 46 additions and 32 deletions
|
|
@ -1 +1,8 @@
|
|||
export const Passphrases = new Map();
|
||||
import { AskPopupView } from 'View/Popup/Ask';
|
||||
|
||||
export const Passphrases = new WeakMap();
|
||||
|
||||
Passphrases.ask = async (key, sAskDesc, btnText) =>
|
||||
Passphrases.has(key)
|
||||
? {password:Passphrases.get(key)/*, remember:false*/}
|
||||
: await AskPopupView.password(sAskDesc, btnText);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue