mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-28 02:16: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 content = this.getAuthInfo();
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
if (content) {
|
if (content) {
|
||||||
const {
|
let {
|
||||||
username: cUsername,
|
username: cUsername,
|
||||||
password: cPassword,
|
password: cPassword,
|
||||||
retries = 0,
|
retries = 0,
|
||||||
|
@ -48,7 +48,10 @@ export default class AuthService {
|
||||||
lastip,
|
lastip,
|
||||||
lastaddr,
|
lastaddr,
|
||||||
twoFactorActivated,
|
twoFactorActivated,
|
||||||
|
twoFactorActived,
|
||||||
} = content;
|
} = content;
|
||||||
|
// patch old field
|
||||||
|
twoFactorActivated = twoFactorActivated || twoFactorActived;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(cUsername === 'admin' && cPassword === 'admin') ||
|
(cUsername === 'admin' && cPassword === 'admin') ||
|
||||||
|
@ -237,6 +240,7 @@ export default class AuthService {
|
||||||
const authInfo = this.getAuthInfo();
|
const authInfo = this.getAuthInfo();
|
||||||
this.updateAuthInfo(authInfo, {
|
this.updateAuthInfo(authInfo, {
|
||||||
twoFactorActivated: false,
|
twoFactorActivated: false,
|
||||||
|
twoFactorActived: false,
|
||||||
twoFactorSecret: '',
|
twoFactorSecret: '',
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -162,7 +162,6 @@ export default {
|
||||||
{
|
{
|
||||||
label: 'pushPlusUser',
|
label: 'pushPlusUser',
|
||||||
tip: '一对多推送的“群组编码”(一对多推送下面->您的群组(如无则新建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)',
|
tip: '一对多推送的“群组编码”(一对多推送下面->您的群组(如无则新建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)',
|
||||||
required: true,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
email: [
|
email: [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user