MCPcopy
hub / github.com/mailvelope/mailvelope / onPwdDialogInit

Method onPwdDialogInit

src/controller/pwd.controller.js:33–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 async onPwdDialogInit() {
34 // pass over keyId and userId to dialog
35 const {userId} = await getUserInfo(this.options.key, {allowInvalid: true});
36 this.ports.pwdDialog.emit('set-init-data', {
37 userId,
38 keyId: this.options.key.getKeyID().toHex().toUpperCase(),
39 cache: prefs.prefs.security.password_cache,
40 reason: this.options.reason
41 });
42 }
43
44 async onOk(msg) {
45 try {

Callers

nothing calls this directly

Calls 4

getUserInfoFunction · 0.90
toHexMethod · 0.80
emitMethod · 0.45
getKeyIDMethod · 0.45

Tested by

no test coverage detected