Skip to content
Permalink
Browse files

bug fix: ignore password filter

  • Loading branch information
usmannasir committed Dec 6, 2019
1 parent 036322d commit 1492fcde6fb765bfb402896ad49de1e7d7e7cc94
@@ -251,7 +251,7 @@ app.controller('modifyUser', function ($scope, $http) {
firstName: firstName,
lastName: lastName,
email: email,
password: password,
passwordByPass: password,
securityLevel: $scope.securityLevel
};

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

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

0 comments on commit 1492fcd

Please sign in to comment.
You can’t perform that action at this time.