Skip to content

Commit ebec622

Browse files
committed
Make sure the confirmed password does not get sent to the API
1 parent c798dc8 commit ebec622

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

client/app/modules/users/controllers/register.ctrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ angular.module('com.module.users')
111111
$scope.register = function() {
112112

113113
$scope.registration.username = $scope.registration.email;
114+
delete $scope.registration.confirmPassword;
114115
$scope.user = User.save($scope.registration,
115116
function() {
116117

common/models/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = function (user) {
88
}
99
ctx.instance.status = 'created';
1010
ctx.instance.created = Date.now();
11-
ctx.instance.confirmPassword = null;
1211
}
1312
next();
1413
});

0 commit comments

Comments
 (0)