MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / addUser

Method addUser

src/controller/app.controller.js:117–124  ·  view source on GitHub ↗
({fingerprint, user, keyringId})

Source from the content-addressed store, hash-verified

115 }
116
117 async addUser({fingerprint, user, keyringId}) {
118 const keyring = await keyringById(keyringId);
119 const privateKey = keyring.getPrivateKeyByFpr(fingerprint);
120 const unlockedKey = await this.unlockKey({key: privateKey, reason: 'PWD_DIALOG_REASON_ADD_USER'});
121 await keyring.addUser(unlockedKey, user);
122 await this.sendKeyUpdate();
123 deletePwdCache(fingerprint);
124 }
125
126 async revokeUser({fingerprint, userId, keyringId}) {
127 const keyring = await keyringById(keyringId);

Callers

nothing calls this directly

Calls 3

unlockKeyMethod · 0.95
sendKeyUpdateMethod · 0.95
getPrivateKeyByFprMethod · 0.80

Tested by

no test coverage detected