Add direct link to the Single-Sign On provider if there is only one sign up method available (#26083)
This commit is contained in:
parent
a5768d3ea6
commit
120f5802c0
8 changed files with 82 additions and 33 deletions
|
@ -11,7 +11,7 @@ module WebAppControllerConcern
|
|||
end
|
||||
|
||||
def skip_csrf_meta_tags?
|
||||
current_user.nil?
|
||||
!(ENV['OMNIAUTH_ONLY'] == 'true' && Devise.omniauth_providers.length == 1) && current_user.nil?
|
||||
end
|
||||
|
||||
def set_app_body_class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue