Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
UX fix. The password recovery option should always be present. It isn…
Browse files Browse the repository at this point in the history
…t intuitive for a user to not see the link and think it will appear on screen once he types a wrong password
  • Loading branch information
cyntss committed Oct 16, 2015
1 parent 654cb2d commit fae243f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/devise/sessions/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ section.row-0
p
| <b>NOTE</b>: The first user to be created will have admin permissions !
- else
.text-center = link_to 'or, Create a new account', new_user_registration_url, class: 'btn btn-link'

- if @errors_occurred
.text-center = link_to "Did you forget your password?", new_user_password_path, class: 'btn btn-link'
.row
.col-sm-6.text-left
= link_to 'Create a new account', new_user_registration_url, class: 'btn btn-link'
.col-sm-6.text-right
= link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'

0 comments on commit fae243f

Please sign in to comment.