Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.

Commit

Permalink
Make sure the confirmed password does not get sent to the API
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed May 30, 2015
1 parent c798dc8 commit ebec622
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions client/app/modules/users/controllers/register.ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ angular.module('com.module.users')
$scope.register = function() {

$scope.registration.username = $scope.registration.email;
delete $scope.registration.confirmPassword;
$scope.user = User.save($scope.registration,
function() {

Expand Down
1 change: 0 additions & 1 deletion common/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = function (user) {
}
ctx.instance.status = 'created';
ctx.instance.created = Date.now();
ctx.instance.confirmPassword = null;
}
next();
});
Expand Down

0 comments on commit ebec622

Please sign in to comment.