修复pushplus通知参数

This commit is contained in:
hanhh
2021-09-20 22:23:41 +08:00
parent 900d279bf6
commit 9fc8fdd9d1
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -40,7 +40,7 @@ export default class AuthService {
const content = this.getAuthInfo();
const timestamp = Date.now();
if (content) {
const {
let {
username: cUsername,
password: cPassword,
retries = 0,
@@ -48,7 +48,10 @@ export default class AuthService {
lastip,
lastaddr,
twoFactorActivated,
twoFactorActived,
} = content;
// patch old field
twoFactorActivated = twoFactorActivated || twoFactorActived;
if (
(cUsername === 'admin' && cPassword === 'admin') ||
@@ -237,6 +240,7 @@ export default class AuthService {
const authInfo = this.getAuthInfo();
this.updateAuthInfo(authInfo, {
twoFactorActivated: false,
twoFactorActived: false,
twoFactorSecret: '',
});
return true;