bug fix: ignore password filter

This commit is contained in:
Usman Nasir
2019-12-06 16:21:13 +05:00
parent 036322d642
commit 1492fcde6f
4 changed files with 6 additions and 6 deletions

View File

@@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) {
firstName: firstName,
lastName: lastName,
email: email,
password: password,
passwordByPass: password,
securityLevel: $scope.securityLevel
};

View File

@@ -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 {

View File

@@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) {
firstName: firstName,
lastName: lastName,
email: email,
password: password,
passwordByPass: password,
securityLevel: $scope.securityLevel
};

View File

@@ -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