' + constants.mailSignature;
+ mailer.options.to = userEmail;
+ mailer.options.subject = emailSubject;
+ mailer.options.html = emailContent;
+ mailer.transporter.sendMail(mailer.options, function(err:any) {
+ if (err) {
+ console.log('cannot send email');
+ throw err;
+ }
+ })
- res.render(lang+'/account/verification', {
- status: true
- })
+ res.render(lang+'/account/verification', {
+ status: true
+ })
}
}
})
@@ -179,13 +179,13 @@ export = function (app:any, config:any, lang:string) {
token += randomChars.charAt(Math.floor(Math.random() * randomChars.length));
}
- var emailSubject = "Ihre Passwort-Anfrage an das Transferportal der HFT Stuttgart";
- var emailContent = '
Lieber Nutzer,
' +
+ let emailSubject = "Ihre Passwort-Anfrage an das Transferportal der HFT Stuttgart";
+ let emailContent = '
Lieber Nutzer,
' +
'
wir haben Ihre Anfrage zur Erneuerung Ihres Passwortes erhalten. Falls Sie diese Anfrage nicht gesendet haben, ignorieren Sie bitte diese E-Mail.
' +
'Sie können Ihr Passwort mit dem Klick auf diesen Link ändern: '+config.app.host+'/reset/' + token + '
' +
'Dieser Link ist aus Sicherheitsgründen nur für 1 Stunde gültig.
' + constants.mailSignature + '
'
- var credentialData = {
+ let credentialData = {
user_id: user.id,
resetPasswordToken: token,
resetPasswordExpires: Date.now() + 3600000 // 1 hour
@@ -227,9 +227,9 @@ export = function (app:any, config:any, lang:string) {
}
})
app.post('/reset/:token', async function(req:any, res:any) {
- var newPwd = req.body.inputNewPwd
+ let newPwd = req.body.inputNewPwd
- var user = await methods.getUserByToken(req.params.token)
+ let user = await methods.getUserByToken(req.params.token)
if (!user) {
res.flash('error', "User not found.")
res.redirect('/login')
@@ -267,9 +267,9 @@ export = function (app:any, config:any, lang:string) {
// ======================= CONTACT FORM ===========================
app.get('/contact', function (req:any, res:any) {
- res.render(lang+'/account/contact', {
- user: req.user
- })
+ res.render(lang+'/account/contact', {
+ user: req.user
+ })
})
app.post('/contact', function(req:any, res:any, next:any) {
//methods.currentDate();
@@ -277,15 +277,15 @@ export = function (app:any, config:any, lang:string) {
let supportAddress = "support-transfer@hft-stuttgart.de";
let inputName = req.body.name;
let inputContent = req.body.message;
- let emailContent = "Es wurde eine Anfrage an das Transferportal gestellt: \n\n NAME: " + inputName + "\n NACHRICHT:\n "+ inputContent;
let emailSubject = "Ihre Anfrage an das Transferportal";
+ let emailContent = "
Es wurde eine Anfrage an das Transferportal gestellt:
NAME: " + inputName + "
NACHRICHT: "+ inputContent+"
";
async.waterfall([
function(done:any) {
// send email
mailer.options.to = supportAddress;
mailer.options.cc = emailAddress;
mailer.options.subject = emailSubject;
- mailer.options.text = emailContent;
+ mailer.options.html = emailContent;
mailer.transporter.sendMail(mailer.options, function(err:any) {
done(err, 'done');
});
diff --git a/views/DE/account/forgotPwd.pug b/views/DE/account/forgotPwd.pug
index 07e90a89d288d63cf08e45a50e0b940c6d0f45fd..4827e727297e467370dab7360fd6119c4a116fac 100644
--- a/views/DE/account/forgotPwd.pug
+++ b/views/DE/account/forgotPwd.pug
@@ -6,6 +6,7 @@ html(lang="de")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")
link(rel="stylesheet", type="text/css", href="/css/bootstrap.min.css")
link(rel="stylesheet", type="text/css", href="/css/m4lab.css")
+ link(rel="stylesheet", type="text/css", href="/css/m4lab-mobile.css")
link(rel="stylesheet", type="text/css", href="/css/custom/login.css")
link(rel="stylesheet", href="https://use.fontawesome.com/releases/v5.8.2/css/all.css", integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay", crossorigin="anonymous")
body
@@ -19,7 +20,7 @@ html(lang="de")
div.alert.alert-danger.alert-dismissible.fade.show #{flash.error}
a(class="close", href="#", data-dismiss="alert", aria-label="close") ×
form#forgotForm(class="form-signin", method="POST")
- img(src="https://transfer.hft-stuttgart.de/images/demo/m4lab_logo.jpg", class="img-responsive center-block", width="185", height="192")
+ img(src="https://transfer.hft-stuttgart.de/img/M4_LAB_LOGO.png", class="img-responsive center-block", width="185", height="192")
div(class="form-row")
input#inputEmail(name="inputEmail", type="email", class="form-control", placeholder="E-Mail-Adresse" required)
br
@@ -32,3 +33,4 @@ html(lang="de")
script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous")
// M4_LAB
script(src="/js/headfoot.js")
+ script(src="/js/mobile.js")
diff --git a/views/DE/account/newInformation.pug b/views/DE/account/newInformation.pug
index 21788f6a514d7acad69f8115ab327cf0d3c16a07..4d82fe0d46898340fae1ae80b0b1a22484720006 100644
--- a/views/DE/account/newInformation.pug
+++ b/views/DE/account/newInformation.pug
@@ -6,6 +6,7 @@ html(lang="de")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")
link(rel="stylesheet", type="text/css", href="/css/bootstrap.min.css")
link(rel="stylesheet", type="text/css", href="/css/m4lab.css")
+ link(rel="stylesheet", type="text/css", href="/css/m4lab-mobile.css")
link(rel="stylesheet", href="https://use.fontawesome.com/releases/v5.8.2/css/all.css", integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay", crossorigin="anonymous")
body
div(class="container")
@@ -99,6 +100,7 @@ html(lang="de")
script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous")
// M4_LAB
script(src="/js/headfoot.js")
+ script(src="/js/mobile.js")
script.
// website URL
function showWebsiteURL() {
diff --git a/views/DE/account/reset.pug b/views/DE/account/reset.pug
index a6ef872a20e5f0c4c1345bc0dcc0b9a1779e5416..e81e11665072af3fb77fd0560c1366f00d5987c1 100644
--- a/views/DE/account/reset.pug
+++ b/views/DE/account/reset.pug
@@ -6,6 +6,7 @@ html(lang="de")
meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")
link(rel="stylesheet", type="text/css", href="/css/bootstrap.min.css")
link(rel="stylesheet", type="text/css", href="/css/m4lab.css")
+ link(rel="stylesheet", type="text/css", href="/css/m4lab-mobile.css")
link(rel="stylesheet", type="text/css", href="/css/custom/login.css")
link(rel="stylesheet", href="https://use.fontawesome.com/releases/v5.8.2/css/all.css", integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay", crossorigin="anonymous")
body
@@ -21,7 +22,7 @@ html(lang="de")
div.alert.alert-danger.alert-dismissible.fade.show #{ error }
a(class="close", href="#", data-dismiss="alert", aria-label="close") ×
form#forgotForm(method="POST", class="form-signin")
- img(src="https://transfer.hft-stuttgart.de/images/demo/m4lab_logo.jpg", class="img-responsive center-block", width="185", height="192")
+ img(src="https://transfer.hft-stuttgart.de/img/M4_LAB_LOGO.png", class="img-responsive center-block", width="185", height="192")
div(class="form-row")
input#inputNewPwd(name="inputNewPwd", type="password", class="form-control", placeholder="Neues Passwort" required)
span#recommendation(class='warning')
@@ -38,3 +39,4 @@ html(lang="de")
script(src="/js/security.js")
script(src="/js/generalFunction.js")
script(src="/js/headfoot.js")
+ script(src="/js/mobile.js")
\ No newline at end of file