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.
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
|
|
import FirstFactorValidator = require("./lib/firstfactor/FirstFactorValidator");
|
|
|
|
import FirstFactor from "./lib/firstfactor/index";
|
|
import SecondFactor from "./lib/secondfactor/index";
|
|
import TOTPRegister from "./lib/totp-register/totp-register";
|
|
import U2fRegister from "./lib/u2f-register/u2f-register";
|
|
import ResetPasswordRequest from "./lib/reset-password/reset-password-request";
|
|
import ResetPasswordForm from "./lib/reset-password/reset-password-form";
|
|
import jslogger = require("js-logger");
|
|
import jQuery = require("jquery");
|
|
import U2fApi = require("u2f-api");
|
|
|
|
jslogger.useDefaults();
|
|
jslogger.setLevel(jslogger.INFO);
|
|
|
|
export = {
|
|
firstfactor: function () {
|
|
FirstFactor(window, jQuery, FirstFactorValidator, jslogger);
|
|
},
|
|
secondfactor: function () {
|
|
SecondFactor(window, jQuery, U2fApi);
|
|
},
|
|
register_totp: function() {
|
|
TOTPRegister(window, jQuery);
|
|
},
|
|
register_u2f: function () {
|
|
U2fRegister(window, jQuery);
|
|
},
|
|
reset_password_request: function () {
|
|
ResetPasswordRequest(window, jQuery);
|
|
},
|
|
reset_password_form: function () {
|
|
ResetPasswordForm(window, jQuery);
|
|
}
|
|
}; |