Permalink
Browse files

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

… password module.
  • Loading branch information...
bnoguchi committed May 2, 2011
1 parent 1fded46 commit 4af689b735eea22744582d29cc6679cc9e954a13
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/password.js
View
@@ -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')

0 comments on commit 4af689b

Please sign in to comment.