diff --git a/static/userManagment/userManagment.js b/static/userManagment/userManagment.js index 869e7099d..ea42f83ca 100644 --- a/static/userManagment/userManagment.js +++ b/static/userManagment/userManagment.js @@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) { firstName: firstName, lastName: lastName, email: email, - password: password, + passwordByPass: password, securityLevel: $scope.securityLevel }; diff --git a/static/websiteFunctions/websiteFunctions.js b/static/websiteFunctions/websiteFunctions.js index 9700d7d3d..c02d78505 100644 --- a/static/websiteFunctions/websiteFunctions.js +++ b/static/websiteFunctions/websiteFunctions.js @@ -1345,7 +1345,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) { function ListInitialDatas(response) { - if (response.data.installStatus == 1) { + if (response.data.installStatus === 1) { if (typeof path != 'undefined') { $scope.installationURL = "http://" + domain + "/" + path; } else { @@ -1432,7 +1432,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) { function ListInitialDatas(response) { - if (response.data.installStatus == 1) { + if (response.data.installStatus === 1) { if (typeof path != 'undefined') { $scope.installationURL = "http://" + domain + "/" + path; } else { diff --git a/userManagment/static/userManagment/userManagment.js b/userManagment/static/userManagment/userManagment.js index 869e7099d..ea42f83ca 100755 --- a/userManagment/static/userManagment/userManagment.js +++ b/userManagment/static/userManagment/userManagment.js @@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) { firstName: firstName, lastName: lastName, email: email, - password: password, + passwordByPass: password, securityLevel: $scope.securityLevel }; diff --git a/userManagment/views.py b/userManagment/views.py index 0cfb10f72..86b20a05d 100755 --- a/userManagment/views.py +++ b/userManagment/views.py @@ -331,8 +331,8 @@ def saveModifications(request): json_data = json.dumps(data_ret) return HttpResponse(json_data) - token = hashPassword.generateToken(accountUsername, data['password']) - password = hashPassword.hash_password(data['password']) + token = hashPassword.generateToken(accountUsername, data['passwordByPass']) + password = hashPassword.hash_password(data['passwordByPass']) user.firstName = firstName user.lastName = lastName