clear webauthn config and data when clear token and settings

This commit is contained in:
MaysWind
2020-11-24 22:51:23 +08:00
parent 48b60fec30
commit 7f2784c542
4 changed files with 8 additions and 0 deletions
+4
View File
@@ -187,6 +187,8 @@ export default {
if (self.$settings.isEnableApplicationLock()) {
self.$settings.setEnableApplicationLock(false);
self.$settings.setEnableApplicationLockWebAuthn(false);
self.$user.clearWebAuthnConfig();
}
self.$user.updateTokenAndUserInfo(data.result);
@@ -264,6 +266,8 @@ export default {
if (self.$settings.isEnableApplicationLock()) {
self.$settings.setEnableApplicationLock(false);
self.$settings.setEnableApplicationLockWebAuthn(false);
self.$user.clearWebAuthnConfig();
}
self.$user.updateTokenAndUserInfo(data.result);