fix: login needs to return bool
This commit is contained in:
parent
42751d5214
commit
620e983011
|
@ -51,9 +51,10 @@ export default class AccountApi {
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
this.jwtToken = (ret as LoginResponse).token;
|
this.jwtToken = (ret as LoginResponse).token;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret as boolean;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async logout(): Promise<boolean> {
|
public async logout(): Promise<boolean> {
|
||||||
|
|
Loading…
Reference in New Issue