Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added req and res as arguments to breakTo('registrationError',...) in…

… password module.
  • Loading branch information...
commit 4af689b735eea22744582d29cc6679cc9e954a13 1 parent 1fded46
@bnoguchi authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/password.js
View
5 lib/password.js
@@ -97,10 +97,9 @@ everyModule.submodule('password')
.extractExtraRegistrationParams( function (req) {
return {};
})
- .validateRegistration( function (login, password, extraParams) {
+ .validateRegistration( function (login, password, extraParams, req, res) {
if (login && password) return { login: login, password: password };
- else return this.breakTo('registrationError');
- // TODO Add in extra args to breakTo
+ else return this.breakTo('registrationError', req, res, 'Missing login and/or password');
})
.stepseq('registrationError')
Please sign in to comment.
Something went wrong with that request. Please try again.