Skip to content
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

Allow custom name attribute on password input #4238

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Sep 18, 2024

What

Allow custom name attribute on password input

Why

On Signon, we use Devise for authentication. We customise the login screen in order to use the GOV.UK Design System, but in order for everything to work seemlessly with Devise (without undue hacking), we use the default Devise input names of user[email] and user[password]. Other apps may well have a similar need given that Devise is a pretty standard library

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4238 September 18, 2024 18:44 Inactive
On Signon, we use Devise for authentication. We customise the login
screen in order to use the GOV.UK Design System, but in order for
everything to work seemlessly with Devise (without undue hacking), we
use the default Devise input names of `user[email]` and
`user[password]`. Other apps may well have a similar need given that
Devise is a pretty standard library

This adds support for customising the name of the password input to
support such use cases
@yndajas yndajas force-pushed the custom-name-on-password-input branch from 83e33e7 to 5f429f8 Compare September 18, 2024 18:44
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4238 September 18, 2024 18:45 Inactive
@yndajas yndajas changed the title Support custom name attribute for the password input Allow custom name attribute on password input Sep 18, 2024
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@yndajas yndajas merged commit 9bc50f5 into main Sep 19, 2024
12 checks passed
@yndajas yndajas deleted the custom-name-on-password-input branch September 19, 2024 08:01
@yndajas yndajas mentioned this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants