-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update sign in page error handling #978
base: main
Are you sure you want to change the base?
Conversation
@@ -42,47 +60,7 @@ | |||
{% endwith %} | |||
<form method="post" class="form"> | |||
{{ form.csrf_token }} | |||
{% if form.errors %} |
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.
Couldn't find how this was used
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.
Looks fine for this page, I see the comment on the card but I don't know if there has been any resolution about this being just for the sign in page
<h2>Sign in</h2> | ||
{% if failed_authentication or form.username.errors | length > 0 %} | ||
{% set error = { "text": "Email address is required" } %} | ||
{% set errorUN = { "text": "Email Address is required", "id": 'username_error' } %} |
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.
At first glance this variable confused me, maybe something like error_username
?
{% if failed_authentication or form.password.errors | length > 0 %} | ||
{% set error = { "text": "Password is required" } %} | ||
{% set errorPW = { "text": "Password is required", "id": 'password_error' } %} |
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.
As above
Yeah have checked and this is just the sign in page.
|
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.
Happy with this now
/deploy wilkia |
Deploying to dev cluster with following parameters:
|
What and why?
This PR updates the error handling on the sign in page. It was identified in the DAC report that the error summary displayed a misleading please try again message. This has been updated with links to the specific errors.
The error summary was also being displayed as an info summary which has been updated.
How to test?
Navigate to the sign in page and generate a sign in error. Check the resulting error summary and components meets the requirements on the DAC report.
Check all other sign in page functionality remains unchanged.
Jira
RAS-1364