Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a97315b authored by Felix Ableitner's avatar Felix Ableitner
Browse files

fix no auth error message

parent 99a261d2
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -29,7 +29,8 @@ class MyHandler(BaseHTTPRequestHandler):
            postvars = {k.decode(): v[0].decode() for k, v in postvars.items()}
            print(f'Received request PUT /create-account, parameters {postvars}')
            if postvars['auth'] != os.environ['CREATE_ACCOUNT_PASSWORD']:
                self.respond(401, "no_auth")
                data = json.dumps({'success': False, 'message': 'no_auth'})
                self.respond(401, data)
                return

            self.create_account(postvars['target_email'], postvars['password'], postvars['password_confirm'],