You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When submitting the new password and password confirmation to /browser/reset_password the server responds with 500, the password is not reset.
Expected behavior
I expect the password to be reset without error.
Error message
{
"success": 0,
"errormsg": "'ResetPasswordForm' object has no attribute 'user'",
"info": "",
"result": null,
"data": null
}
Desktop (please complete the following information):
OS: macOS 14.2.1 (23C71)
Version: 8.6
Mode: Server
Browser (if running in server mode): Chrome
Package type: Container
Additional context
Some more output from the server logs:
2024-05-22 17:42:09,594: ERROR pgadmin: 'ResetPasswordForm' object has no attribute 'user'
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/flask_security/decorators.py", line 645, in wrapper
return current_app.ensure_sync(f)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/pgadmin4/pgadmin/browser/__init__.py", line 1111, in reset_password
File "/venv/lib/python3.11/site-packages/flask_wtf/form.py", line 86, in validate_on_submit
return self.is_submitted() and self.validate(extra_validators=extra_validators)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/flask_security/forms.py", line 717, in validate
self.password.data, False, user=self.user
^^^^^^^^^
AttributeError: 'ResetPasswordForm' object has no attribute 'user'
Thank you!
/David
The text was updated successfully, but these errors were encountered:
…t link was not working. pgadmin-org#7500
2. Fixed an issue where the recover password button was enabled even when no email was provided. pgadmin-org#7487
…t link was not working. pgadmin-org#7500
2. Fixed an issue where the recover password button was enabled even when no email was provided. pgadmin-org#7487
Describe the bug
When submitting the new password and password confirmation to /browser/reset_password the server responds with 500, the password is not reset.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the password to be reset without error.
Error message
Desktop (please complete the following information):
Additional context
Some more output from the server logs:
Thank you!
/David
The text was updated successfully, but these errors were encountered: