-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from fnf-org/mfl/password-usability
Mfl/password usability
- Loading branch information
Showing
5 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
%h2 Change your password | ||
%h3 Change your password | ||
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }, data: { turbo: false } ) do |f| | ||
= render "devise/shared/error_messages", resource: resource | ||
= f.hidden_field :reset_password_token | ||
.field | ||
%p= f.label :password, "New password" | ||
- if @minimum_password_length | ||
%p | ||
%em | ||
(#{@minimum_password_length} characters minimum) | ||
%br | ||
%strong= "New Password" | ||
%small.fst-italic.text-nowrap | ||
= " (#{@minimum_password_length} characters minimum)" | ||
%p= f.password_field :password, autofocus: true, autocomplete: "new-password" | ||
.field | ||
%p= f.label :password_confirmation, "Confirm new password" | ||
- if @minimum_password_length | ||
%p | ||
%em | ||
(#{@minimum_password_length} characters minimum) | ||
%p= f.password_field :password_confirmation, autocomplete: "new-password" | ||
%br | ||
%strong= "New Password Confirmation" | ||
%small.fst-italic.text-nowrap | ||
= " (#{@minimum_password_length} characters minimum)" | ||
%p= f.password_field :password_confirmation, autocomplete: "new-password", required: true | ||
.actions | ||
= f.submit "Change my password", class: 'btn btn-primary btn-large' | ||
= render "devise/shared/links" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters