-
Notifications
You must be signed in to change notification settings - Fork 699
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
Better handling of validation errors when remote facility does not require passwords #11704
Better handling of validation errors when remote facility does not require passwords #11704
Conversation
Build Artifacts
|
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.
These changes make sense to me codewise, and do as described in the PR description. Needs manual QA to verify.
Hi @jredrejo, I confirm that now the message "Incorrect username or password" is being displayed for not existing learner accounts or mistyped username/password. Here's a list with other issues that I am aware of in terms of validation. Perhaps some of those are in scope for this PR, the rest can be fixed separately:
|
hi @pcenov are there open issues for these items? I was not aware of any of these excepting #11540 and want to avoid conflicts with other people work. In case there are not other open issues, please edit #11605 to add this list or create a new one so we can focus and schedule the work because your list is quite overwhelming and means there are quite a lot of problems that can look similar to #11605 but are technically different as most of them are in the frontend not (or not only) in the backend validation. |
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.
Ok, thanks @jredrejo - I have created a follow-up issue as suggested.
Summary
When importing users in a LOD device, authentication errors were not passed as ValidationErrors to the frontend. Also, when the remote facility allowed authentication without password, if the username didn't exist no known error was being passed to the frontend.
This PR fixes these problems.
References
Closes: #11605
Reviewer guidance
Steps to test this PR are described in the steps to reproduce #11605
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)