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