Commit cebe2410 authored by o's avatar o
Browse files

make logout button configurable

parent 69e86a0a
......@@ -33,7 +33,7 @@
<div class="loginstat">
<% if current_user %>
<%= link_to t(:hello), '/' %> <%= current_user %> (<%= link_to (t :logout), '/logout' %>)
<%= link_to t(:hello), '/' %> <%= current_user %> (<%= link_to (t :logout), if SamlConfig.idp_sso_logout then SamlConfig.idp_sso_logout else '/logout' end %>)
<% elsif !@handoff %>
<i><%= t(:main_title) %></i>
<% end %>
......
......@@ -10,6 +10,9 @@ module SamlConfig
end
end
end
def idp_sso_logout
the_config['idp_sso_logout']
end
def idp_sso
the_config['idp_sso']
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment