From 2d93e45c6b39a3cf7d3200c6e85b369e654840e5 Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Tue, 12 Jul 2022 14:53:22 +0200
Subject: [PATCH] MLAB-671

---
 src/app.ts                    | 4 ++--
 src/views/DE/account/home.pug | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/app.ts b/src/app.ts
index e6d5770c..7d830539 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 fb0d3c5d..44b10364 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.") }
             })
-- 
GitLab