merge-requests/30/head
Bob Mottram 2021-07-20 09:41:46 +01:00
parent 845740bb01
commit 223ee5a5f5
1 changed files with 7 additions and 10 deletions

View File

@ -4235,16 +4235,13 @@ class PubServer(BaseHTTPRequestHandler):
actorChanged = True actorChanged = True
# change password # change password
if fields.get('password'): if fields.get('password') and \
if len(fields['password']) > 2: fields.get('passwordconfirm'):
if fields.get('passwordconfirm'): if len(fields['password']) > 2 and \
if fields['password'] == \ fields['password'] == fields['passwordconfirm']:
fields['passwordconfirm']: # set password
# set password storeBasicCredentials(baseDir, nickname,
pwd = fields['password'] fields['password'])
storeBasicCredentials(baseDir,
nickname,
pwd)
# change city # change city
if fields.get('cityDropdown'): if fields.get('cityDropdown'):