Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
chore(server): Add some comments about why a some strange patterns ar…
Browse files Browse the repository at this point in the history
…e used.
  • Loading branch information
Shane Tomlinson committed Jul 25, 2016
1 parent e265694 commit 2fba045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/customs.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ module.exports = function (log, error) {
}
)
.then(
// There's no useful information in the HTTP response, discard it.
function () {},
function (err) {
log.error({ op: 'customs.flag.1', email: email, err: err })
Expand All @@ -96,6 +97,7 @@ module.exports = function (log, error) {
}
)
.then(
// There's no useful information in the HTTP response, discard it.
function () {},
function (err) {
log.error({ op: 'customs.reset.1', email: email, err: err })
Expand Down
2 changes: 2 additions & 0 deletions lib/routes/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,8 @@ module.exports = function (
if (config.isProduction) {
delete routes[0].config.validate.payload.preVerified
} else {
// programmatic account lockout was only available in
// non-production mode.
routes.push({
method: 'POST',
path: '/account/lock',
Expand Down

0 comments on commit 2fba045

Please sign in to comment.