mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Client and server now have their own tsconfig so that the transpilation is only done on the part that is being modified. It also allows faster transpilation since tests are now excluded from tsconfig. They are compiled by ts-node during unit tests execution.
20 lines
811 B
TypeScript
20 lines
811 B
TypeScript
|
|
import express = require("express");
|
|
import objectPath = require("object-path");
|
|
import winston = require("winston");
|
|
import Endpoints = require("../../../../../shared/api");
|
|
import AuthenticationValidator = require("../../AuthenticationValidator");
|
|
import { ServerVariablesHandler } from "../../ServerVariablesHandler";
|
|
import BluebirdPromise = require("bluebird");
|
|
|
|
export default function (req: express.Request, res: express.Response): BluebirdPromise<void> {
|
|
const logger = ServerVariablesHandler.getLogger(req.app);
|
|
|
|
logger.debug("First factor: headers are %s", JSON.stringify(req.headers));
|
|
|
|
res.render("firstfactor", {
|
|
first_factor_post_endpoint: Endpoints.FIRST_FACTOR_POST,
|
|
reset_password_request_endpoint: Endpoints.RESET_PASSWORD_REQUEST_GET
|
|
});
|
|
return BluebirdPromise.resolve();
|
|
} |