-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix change password error #3536
Fix change password error #3536
Conversation
@hitenvidhani there is a backend test related to password reset that is failing, can you fix that? |
#3536 (comment) |
This is by design @hitenvidhani, an admin sets up a generic password for a user which is then changed by the user on their first login and that's when we perform validation. @seancolsen can you weigh in on Hiten's query about the UI? I also see that the alignment of the info icon is broken in the second image we might want to fix that as it looks like a regression. I noticed that there is validation for when an admin resets the password for an already created users, which I think should be removed to be consistent with the flow of user creation. |
There seem to be potentially a few questions in this thread regarding UI... i18n of the error message, display of error message, formatting of icon, etc... I consider all these to be out of scope for this PR and also not important enough to bother with tracking or fixing at this point. At the very least, definitely ignore all those UI issues within this PR. Probably ignore them entirely. But @hitenvidhani if you feel motivated to chase any of those UI issues down, then you could open a new issue where we could discuss it. For example you could try putting Mathesar into Japanese mode and demonstrate an English error message about a user's password. That would be a compelling thing to work on. You could take that up if you like. Just not in this PR. Good eye, by the way, thinking about that i18n issue! |
as per design, not implementing validation while resetting password(admin). validation works when user tries to change the password. |
@Anish9901 we can merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hitenvidhani, the PR looks good overall, I've requested a couple of changes that need to be addressed before we can merge this in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this @hitenvidhani! The PR looks good after the changes, I made a small change(98a3315) that raises the ValidationError directly instead of typecasting the exception to str and then raising it, this way the exception string isn't converted to a list of string of errors.
7944c44
Fixes #3528
Screenshots
Checklist
Update index.md
).develop
branch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin