Fix provider urls

pull/6827/head
Oliver Günther 7 years ago
parent 52366fe912
commit e8d1820551
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 8
      app/views/hooks/login/_providers.html.erb

@ -33,15 +33,13 @@ See doc/COPYRIGHT.rdoc for more details.
<% OpenProject::Plugins::AuthPlugin.providers.each do |pro| %> <% OpenProject::Plugins::AuthPlugin.providers.each do |pro| %>
<% <%
opts = { opts = {}
:controller => '/auth',
:action => pro[:name]
}
if params['back_url'] if params['back_url']
opts[:origin] = params['back_url'] opts[:origin] = params['back_url']
end end
%> %>
<a href="<%= url_for opts %>" class="auth-provider auth-provider-<%= pro[:name] %> button"> <a href="<%= omniauth_start_path(pro[:name], opts) %>" class="auth-provider auth-provider-<%= pro[:name] %> button">
<% if pro[:icon] %> <% if pro[:icon] %>
<%= content_for :header_tags do %> <%= content_for :header_tags do %>
<style type="text/css"> <style type="text/css">

Loading…
Cancel
Save