features.token修改
This commit is contained in:
parent
5157bc73f3
commit
c5e4704dd0
|
|
@ -98,7 +98,6 @@ export class Token<ED extends EntityDict> extends Feature {
|
||||||
|
|
||||||
async loginByMobile(
|
async loginByMobile(
|
||||||
mobile: string,
|
mobile: string,
|
||||||
password?: string,
|
|
||||||
captcha?: string,
|
captcha?: string,
|
||||||
disableRegister?: boolean
|
disableRegister?: boolean
|
||||||
) {
|
) {
|
||||||
|
|
@ -106,7 +105,6 @@ export class Token<ED extends EntityDict> extends Feature {
|
||||||
const { result } = await this.cache.exec(
|
const { result } = await this.cache.exec(
|
||||||
'loginByMobile',
|
'loginByMobile',
|
||||||
{
|
{
|
||||||
password,
|
|
||||||
mobile,
|
mobile,
|
||||||
captcha,
|
captcha,
|
||||||
disableRegister,
|
disableRegister,
|
||||||
|
|
@ -145,7 +143,6 @@ export class Token<ED extends EntityDict> extends Feature {
|
||||||
async loginByAccount(
|
async loginByAccount(
|
||||||
account: string,
|
account: string,
|
||||||
password: string,
|
password: string,
|
||||||
disableRegister?: boolean
|
|
||||||
) {
|
) {
|
||||||
const env = await this.environment.getEnv();
|
const env = await this.environment.getEnv();
|
||||||
const { result } = await this.cache.exec(
|
const { result } = await this.cache.exec(
|
||||||
|
|
@ -153,14 +150,13 @@ export class Token<ED extends EntityDict> extends Feature {
|
||||||
{
|
{
|
||||||
account,
|
account,
|
||||||
password,
|
password,
|
||||||
disableRegister,
|
|
||||||
env,
|
env,
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
this.tokenValue = result;
|
this.tokenValue = result;
|
||||||
// await this.storage.save(LOCAL_STORAGE_KEYS.token, result);
|
await this.storage.save(LOCAL_STORAGE_KEYS.token, result);
|
||||||
this.publish();
|
this.publish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue