mirror of
https://example.com
synced 2024-11-22 10:36:38 +09:00
fix(backend): update security keys available entry
This commit is contained in:
parent
7ceaa9c090
commit
4687b21d79
2 changed files with 4 additions and 1 deletions
|
@ -144,6 +144,8 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
}),
|
||||
);
|
||||
|
||||
UserProfiles.update(user.id, { securityKeysAvailable: true });
|
||||
|
||||
return {
|
||||
id: credentialIdString,
|
||||
name: ps.name,
|
||||
|
|
|
@ -47,8 +47,9 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
});
|
||||
|
||||
if (keyCount === 0) {
|
||||
await UserProfiles.update(me.id, {
|
||||
await UserProfiles.update(user.id, {
|
||||
usePasswordLessLogin: false,
|
||||
securityKeysAvailable: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue