mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Before this patch, when Authelia started, if Mongo was not up and running, Authelia failed to connect and never retried. Now, everytime Authelia faces a broken connection, it tries to reconnect during the next operation.
11 lines
465 B
TypeScript
11 lines
465 B
TypeScript
import VisitPage from "./visit-page";
|
|
import FillLoginPageAndClick from './fill-login-page-and-click';
|
|
import RegisterTotp from './register-totp';
|
|
import WaitRedirected from './wait-redirected';
|
|
import LoginAs from './login-as';
|
|
|
|
export default function(driver: any, user: string, email?: boolean) {
|
|
return LoginAs(driver, user)
|
|
.then(() => WaitRedirected(driver, "https://login.example.com:8080/secondfactor"))
|
|
.then(() => RegisterTotp(driver, email));
|
|
} |