mirror of
https://gitlab.com/JKANetwork/powerfulcomputermanager.git
synced 2026-03-04 17:39:58 +01:00
Cleaning debug
This commit is contained in:
@@ -295,7 +295,6 @@ def m_delcomputergroup():
|
||||
|
||||
# Check password before starting all
|
||||
pa = returnvalueapi("/check/password?Password=None",field="EXITCODE")
|
||||
print(pa)
|
||||
if pa == "3": # No password stored yet
|
||||
passw = easygui.passwordbox(T('There is no password yet in PCM. Please set one below'),T('Set password'))
|
||||
passw2 = easygui.passwordbox(T('Confirm it'),T('Set password'))
|
||||
@@ -316,7 +315,6 @@ else: # There is a password
|
||||
quit()
|
||||
passha256 = hashlib.sha256(passw.encode()).hexdigest()
|
||||
re = returnvalueapi("/check/password?Password="+passha256,field="EXITCODE") # Create password in database
|
||||
print(re)
|
||||
if re == '0': # Password is right
|
||||
menuprinc()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user