mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-26 00:46:07 +08:00
修复pushplus通知参数
This commit is contained in:
parent
900d279bf6
commit
9fc8fdd9d1
|
@ -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;
|
||||
|
|
|
@ -162,7 +162,6 @@ export default {
|
|||
{
|
||||
label: 'pushPlusUser',
|
||||
tip: '一对多推送的“群组编码”(一对多推送下面->您的群组(如无则新建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
email: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user