mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
Delete user/password api output (security)
This commit is contained in:
parent
4024f7e4cf
commit
41dc6b2260
1 changed files with 0 additions and 2 deletions
|
@ -408,7 +408,6 @@ class Core:
|
|||
"""
|
||||
|
||||
def get_clusters_conf(self, cluster=None):
|
||||
## DELETE USER/PW DATA
|
||||
""" Test Redis Cache """
|
||||
hash_object = hashlib.md5("{0}-{1}".format("administration", cluster).encode('utf-8'))
|
||||
hash_hex = hash_object.hexdigest()
|
||||
|
@ -425,7 +424,6 @@ class Core:
|
|||
|
||||
def insert_clusters_conf(self, data):
|
||||
testdata = valid_clusters_data(data)
|
||||
|
||||
if not testdata:
|
||||
if not self.mongo.get_clusters_conf(data["name"])["value"]:
|
||||
data["user"] = base64.b64encode(pcrypt(data["user"], self.generalconf["keys"]["key_pvt"])["data"]).decode('utf-8')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue