mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
code refactor
This commit is contained in:
@@ -175,7 +175,7 @@ export default {
|
||||
self.verifyingByWebAuthn = true;
|
||||
|
||||
webauthn.verifyCredential(
|
||||
self.userStore.currentUserInfo,
|
||||
self.userStore.currentUserBasicInfo,
|
||||
self.$user.getWebAuthnCredentialId()
|
||||
).then(({ id, userName, userSecret }) => {
|
||||
self.verifyingByWebAuthn = false;
|
||||
@@ -217,7 +217,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const user = self.userStore.currentUserInfo;
|
||||
const user = self.userStore.currentUserBasicInfo;
|
||||
|
||||
if (!user || !user.username) {
|
||||
self.$refs.snackbar.showMessage('An error occurred');
|
||||
|
||||
Reference in New Issue
Block a user