-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup token passthrough and remove leftover code
- Loading branch information
1 parent
966b63e
commit d93d6fc
Showing
6 changed files
with
56 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
exports = module.exports = function(req, res) { | ||
exports = module.exports = function (req, res) { | ||
|
||
var locals = res.locals; | ||
var locals = res.locals; | ||
|
||
// locals.section is used to set the currently selected | ||
// item in the header navigation. | ||
locals.section = 'account'; | ||
// locals.section is used to set the currently selected | ||
// item in the header navigation. | ||
locals.section = 'account'; | ||
|
||
locals.formData = req.body || {}; | ||
locals.formData = req.body || {}; | ||
|
||
var flash = null; | ||
var flash = null; | ||
|
||
if (req.originalUrl == '/account_activated') { | ||
flash = {}; | ||
|
||
flash.class = 'alert-success'; | ||
flash.messages = [{msg: 'You have activated your account successfully! Please try to login with the new account.'}]; | ||
flash.type = 'Success!'; | ||
} | ||
|
||
// Render the view | ||
res.render('account/register', {flash: flash}); | ||
// Render the view | ||
res.render('account/register', {flash: flash}); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
exports = module.exports = function(req, res) { | ||
exports = module.exports = function (req, res) { | ||
|
||
var locals = res.locals; | ||
var locals = res.locals; | ||
|
||
// locals.section is used to set the currently selected | ||
// item in the header navigation. | ||
locals.section = 'account'; | ||
// locals.section is used to set the currently selected | ||
// item in the header navigation. | ||
locals.section = 'account'; | ||
|
||
locals.formData = req.body || {}; | ||
locals.formData = req.body || {}; | ||
|
||
var flash = null; | ||
var flash = null; | ||
|
||
if (req.originalUrl == '/password_resetted') { | ||
flash = {}; | ||
|
||
flash.class = 'alert-success'; | ||
flash.messages = [{msg: 'You have successfully reset your password! Please try to login with the new password.'}]; | ||
flash.type = 'Success!'; | ||
} | ||
|
||
// Render the view | ||
res.render('account/requestPasswordReset', {flash: flash}); | ||
// Render the view | ||
res.render('account/requestPasswordReset', {flash: flash}); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters