mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 18:21:39 +01:00
don't allow signing own user
This commit is contained in:
parent
4dce93e5ef
commit
20a6fcda72
@ -135,6 +135,10 @@ export class CrossSigning {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// need to be able to get the msk for the user
|
// need to be able to get the msk for the user
|
||||||
|
// can't sign own user
|
||||||
|
if (userId === this.ownUserId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const keyToSign = await this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.Master, this.hsApi, log);
|
const keyToSign = await this.deviceTracker.getCrossSigningKeyForUser(userId, KeyUsage.Master, this.hsApi, log);
|
||||||
if (!keyToSign) {
|
if (!keyToSign) {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user