web/user: fix deletion of authenticator not refreshing page
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -45,6 +45,8 @@ export class UserSettingsAuthenticatorStatic extends BaseUserSettings {
|
||||
// TODO: Handle multiple devices, currently we assume only one TOTP Device
|
||||
return new AuthenticatorsApi(DEFAULT_CONFIG).authenticatorsStaticDestroy({
|
||||
id: devices.results[0].pk || 0
|
||||
}).then(() => {
|
||||
this.requestUpdate();
|
||||
});
|
||||
});
|
||||
}}>
|
||||
|
||||
Reference in New Issue
Block a user