mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
13 lines
433 B
TypeScript
13 lines
433 B
TypeScript
import { WebDriver } from "selenium-webdriver";
|
|
import LoginAndRegisterTotp from "../LoginAndRegisterTotp";
|
|
import FullLogin from "../FullLogin";
|
|
|
|
export default async function(
|
|
driver: WebDriver,
|
|
username: string,
|
|
email: boolean = false,
|
|
targetUrl: string = "https://login.example.com:8080/") {
|
|
|
|
const secret = await LoginAndRegisterTotp(driver, username, email);
|
|
await FullLogin(driver, username, secret, targetUrl);
|
|
}; |