Skip to content

Commit

Permalink
Updated set_password arguments - Fixes #1150
Browse files Browse the repository at this point in the history
  • Loading branch information
axelstudios committed Dec 15, 2016
1 parent 415c65a commit 341f613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seed/static/seed/js/controllers/security_controller.js
Expand Up @@ -23,7 +23,7 @@ angular.module('BE.seed.controller.security', [])
* sets the user's password
*/
$scope.change_password = function () {
user_service.set_password(user_profile_payload.id, $scope.current_password, $scope.password_1, $scope.password_2)
user_service.set_password($scope.current_password, $scope.password_1, $scope.password_2)
.then(function (data) {
$scope.password_updated = true;
$scope.error_message = '';
Expand Down
2 changes: 1 addition & 1 deletion seed/static/seed/js/services/user_service.js
Expand Up @@ -234,7 +234,7 @@ angular.module('BE.seed.service.user', []).factory('user_service', [
user_factory.get_user_id().then(function (this_user_id) {
$http({
method: 'PUT',
url: '/api/v2/users/' + this_user_id.toString() + '/set_password/',
url: '/api/v2/users/' + this_user_id + '/set_password/',
data: {
current_password: current_password,
password_1: password_1,
Expand Down

0 comments on commit 341f613

Please sign in to comment.