Fix password encryption method

libadwaita-rewrite
axtloss 2 years ago
parent 3e5139ab04
commit 1307479efd

@ -38,7 +38,10 @@ class InstallScreen(Adw.Bin):
process = subprocess.Popen(["bash", "-c", "bash -- /app/share/jade_gui/jade_gui/scripts/install.sh"], stdout=subprocess.PIPE)
for c in iter(lambda: process.stdout.read(1), b""):
log=c
try:
GLib.idle_add(self.update_output, c.decode("utf-8"))
except:
pass
f.write(c)
def update_output(self, message):

@ -101,7 +101,7 @@ class UserScreen(Adw.Bin):
self.password_confirmation.add_css_class('error')
def encrypt_password(self, password):
command=subprocess.run(["openssl", "passwd", "-6", password], capture_output=True)
command=subprocess.run(["openssl", "passwd", "-crypt", password], capture_output=True)
password_encrypted=command.stdout.decode('utf-8').strip('\n')
return password_encrypted

Loading…
Cancel
Save