|
|
public async tryLogin(username: string, password: string, totp?: string): Promise<boolean | null> {
|
|
public async tryLogin(username: string, password: string, totp?: string): Promise<boolean | null> {
|
|
|
const account = await this.tryBind(username, password);
|
|
const account = await this.tryBind(username, password);
|
|
|
return TotpChecker.ValidateTotp(account.totp, totp);
|
|
return TotpChecker.ValidateTotp(account.totp, totp);
|