code refactor

This commit is contained in:
MaysWind
2020-11-22 13:47:19 +08:00
parent a02d2e8160
commit 815f6718cc
3 changed files with 12 additions and 7 deletions
+1
View File
@@ -33,6 +33,7 @@ export default {
if (self.$settings.isEnableApplicationLockWebAuthn() && self.$user.getWebAuthnCredentialId()) {
self.$webauthn.verifyCredential(
self.$user.getUserInfo(),
self.$user.getWebAuthnCredentialId()
).then(({ id, userSecret }) => {
self.$user.unlockTokenByWebAuthn(id, userSecret);