diff --git a/src/app.ts b/src/app.ts index e6d5770c86cecf1b08c301dab08272ec2b385a68..7d830539a62508730cf75c0c9144258932d80775 100644 --- a/src/app.ts +++ b/src/app.ts @@ -49,7 +49,7 @@ app.use(cookieParser(config.app.sessionSecret)) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: false })) app.use(express.static(path.join(__dirname, 'public'))) -app.use((req, res, next) => { +app.use((req: any, res: any, next: any) => { next() }) @@ -64,7 +64,7 @@ app.use(passport.session()) // caching disabled for every route // NOTE: Works in Firefox and Opera. Does not work in Edge -app.use(function (req, res, next) { +app.use(function (req: any, res: any, next: any) { res.set('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0') next() }) diff --git a/src/views/DE/account/home.pug b/src/views/DE/account/home.pug index fb0d3c5d5c022d4e7ef587a33f0fedcf104b018e..44b1036490d1cfc8440d123dd3e0b82b00434fb5 100644 --- a/src/views/DE/account/home.pug +++ b/src/views/DE/account/home.pug @@ -61,7 +61,7 @@ html(lang="de") // call verifyAccount function verify() { $(".spinner-border").show() - $.get( "/resendVerificationEmail", function( data ) { + $.get( "/account/resendVerificationEmail", function( data ) { if (data) { alert( "Email sent!" ) } else { alert("Please contact support-transfer@hft-stuttgart.de to verify your account.") } })