From 845740bb01a4a9ab19a0761d0a205cbdc3268a83 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Jul 2021 09:38:39 +0100 Subject: [PATCH] Fields for changing password --- daemon.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index a331289f3..d92b69bac 100644 --- a/daemon.py +++ b/daemon.py @@ -4236,12 +4236,12 @@ class PubServer(BaseHTTPRequestHandler): # change password if fields.get('password'): - if fields.get('passwordconfirm'): - if actorJson['password'] == \ - fields['passwordconfirm']: - if len(actorJson['password']) > 2: + if len(fields['password']) > 2: + if fields.get('passwordconfirm'): + if fields['password'] == \ + fields['passwordconfirm']: # set password - pwd = actorJson['password'] + pwd = fields['password'] storeBasicCredentials(baseDir, nickname, pwd)