Omniauth Support
This commit is contained in:
parent
4ce034ca65
commit
a64aff2f1c
20 changed files with 195 additions and 61 deletions
|
@ -14,10 +14,15 @@
|
|||
<div class="right"> <%= render :partial => "devise/shared/links" %></div>
|
||||
|
||||
<%- if devise_mapping.omniauthable? %>
|
||||
<%- resource_class.omniauth_providers.each do |provider| %>
|
||||
<hr/>
|
||||
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), :class => "btn primary" %><br />
|
||||
<% end -%>
|
||||
<hr/>
|
||||
<div class="auth_methods">
|
||||
<ul>
|
||||
<%- resource_class.omniauth_providers.each do |provider| %>
|
||||
<li><%= link_to authbutton(provider),
|
||||
omniauth_authorize_path(resource_name, provider) %></li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue