Skip to content
Snippets Groups Projects
Commit 105b7a5d authored by Zachary Carter's avatar Zachary Carter
Browse files

update nodemailer and pass a local instance of `util` to views - issue1756

parent 81e27832
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ function renderCachableView(req, res, template, options) {
options.enable_development_menu = config.get('enable_development_menu');
res.local('util', util);
res.render(template, options);
}
......@@ -139,6 +140,7 @@ exports.setup = function(app) {
app.get("/forgot", function(req, res) {
// !cachable! email embedded in DOM
res.local('util', util);
res.render('forgot.ejs', {
title: 'Forgot Password',
fullpage: false,
......@@ -165,6 +167,7 @@ exports.setup = function(app) {
app.get("/verify_email_address", function(req, res) {
// !cachable! token is embedded in DOM
res.local('util', util);
res.render('verify_email_address.ejs', {
title: 'Complete Registration',
fullpage: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment