mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
bug fix: ignore password filter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user