修复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

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;

View File

@ -162,7 +162,6 @@ export default {
{
label: 'pushPlusUser',
tip: '一对多推送的“群组编码”(一对多推送下面->您的群组(如无则新建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)',
required: true,
},
],
email: [