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

Commit

Permalink
ldap: don't show the "I forgot my password" link
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Dec 16, 2015
1 parent 09d8733 commit 377a59b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.slim
Expand Up @@ -19,7 +19,7 @@ section.row-0
= link_to 'Create a new account', new_user_registration_url, class: 'btn btn-link'
.col-sm-6.forgot-password
= link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'
- else
- elsif !Portus::LDAP.enabled?
.forgot-password
= link_to "I forgot my password", new_user_password_path, class: 'btn btn-link'
- if show_first_user_alert?
Expand Down
1 change: 1 addition & 0 deletions spec/features/auth/login_feature_spec.rb
Expand Up @@ -21,6 +21,7 @@

expect(page).to_not have_content("The first user to be created will have admin permissions !")
expect(page).to_not have_content("Create a new account")
expect(page).to_not have_content("I forgot my password")

APP_CONFIG["first_user_admin"] = { "enabled" => true }
visit new_user_session_path
Expand Down

0 comments on commit 377a59b

Please sign in to comment.