Fields for changing password

main
Bob Mottram 2021-07-20 09:38:39 +01:00
parent a07d301583
commit 845740bb01
1 changed files with 5 additions and 5 deletions

View File

@ -4236,12 +4236,12 @@ class PubServer(BaseHTTPRequestHandler):
# change password # change password
if fields.get('password'): if fields.get('password'):
if len(fields['password']) > 2:
if fields.get('passwordconfirm'): if fields.get('passwordconfirm'):
if actorJson['password'] == \ if fields['password'] == \
fields['passwordconfirm']: fields['passwordconfirm']:
if len(actorJson['password']) > 2:
# set password # set password
pwd = actorJson['password'] pwd = fields['password']
storeBasicCredentials(baseDir, storeBasicCredentials(baseDir,
nickname, nickname,
pwd) pwd)