Skip to content
Snippets Groups Projects
Unverified Commit dd63923c authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix link_to_login argument handling when a block is passed (#17345)

parent 0a120d86
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,8 @@ module ApplicationHelper
def link_to_login(name = nil, html_options = nil, &block)
target = new_user_session_path
html_options = name if block_given?
if omniauth_only? && Devise.mappings[:user].omniauthable? && User.omniauth_providers.size == 1
target = omniauth_authorize_path(:user, User.omniauth_providers[0])
html_options ||= {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment