Skip to content

Commit

Permalink
Merge pull request CoderDojo#84 from CoderDojo/registration-loggedin-fix
Browse files Browse the repository at this point in the history
Remove user object when registering
  • Loading branch information
sigismondm committed Jul 31, 2015
2 parents 3293843 + e15d8c3 commit 8f50a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ module.exports = function(options){
}

function registerUser(success, done){
args = _.omit(args, ['g-recaptcha-response', 'zenHostname', 'locality']);
args = _.omit(args, ['g-recaptcha-response', 'zenHostname', 'locality', 'user']);

args.roles = ['basic-user'];
args.mailingList = (args.mailingList) ? 1 : 0;
Expand Down

0 comments on commit 8f50a5c

Please sign in to comment.