Here is a stack trace:
Traceback (most recent call last):
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/core.py", line 1061, in wrapper
ret = func(*func_args, **func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/core.py", line 1046, in wrapper
raise exception
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/core.py", line 1022, in wrapper
context["output"] = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/utils/auth.py", line 1169, in _
form=form_factory(), path=path, user=auth.get_user(), **env
^^^^^^^^^^^^^^
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/utils/auth.py", line 2008, in reset_password
)
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/utils/auth.py", line 2065, in _process_change_password_form
new_password = request.forms.get("new_password")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pete/venv-hmp/lib/python3.12/site-packages/py4web/utils/auth.py", line 837, in change_password
if new_pwd == user.password:
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'password'
Changing line 1996 in auth.py from:
user = None
to:
user = self.auth.db.auth_user(self.auth.user_id)
fixes the problem.