Commit 2d93e45c authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

MLAB-671

parent bcc720ed
......@@ -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()
})
......
......@@ -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.") }
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment