Skip to content

Commit 1492fcd

Browse files
committed
bug fix: ignore password filter
1 parent 036322d commit 1492fcd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

static/userManagment/userManagment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) {
251251
firstName: firstName,
252252
lastName: lastName,
253253
email: email,
254-
password: password,
254+
passwordByPass: password,
255255
securityLevel: $scope.securityLevel
256256
};
257257

static/websiteFunctions/websiteFunctions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
13451345

13461346
function ListInitialDatas(response) {
13471347

1348-
if (response.data.installStatus == 1) {
1348+
if (response.data.installStatus === 1) {
13491349
if (typeof path != 'undefined') {
13501350
$scope.installationURL = "http://" + domain + "/" + path;
13511351
} else {
@@ -1432,7 +1432,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
14321432

14331433
function ListInitialDatas(response) {
14341434

1435-
if (response.data.installStatus == 1) {
1435+
if (response.data.installStatus === 1) {
14361436
if (typeof path != 'undefined') {
14371437
$scope.installationURL = "http://" + domain + "/" + path;
14381438
} else {

userManagment/static/userManagment/userManagment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) {
251251
firstName: firstName,
252252
lastName: lastName,
253253
email: email,
254-
password: password,
254+
passwordByPass: password,
255255
securityLevel: $scope.securityLevel
256256
};
257257

userManagment/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ def saveModifications(request):
331331
json_data = json.dumps(data_ret)
332332
return HttpResponse(json_data)
333333

334-
token = hashPassword.generateToken(accountUsername, data['password'])
335-
password = hashPassword.hash_password(data['password'])
334+
token = hashPassword.generateToken(accountUsername, data['passwordByPass'])
335+
password = hashPassword.hash_password(data['passwordByPass'])
336336

337337
user.firstName = firstName
338338
user.lastName = lastName

0 commit comments

Comments
 (0)