Skip to content

Commit

Permalink
Don't show sign in with Twitter and FB buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
cutalion committed Sep 5, 2012
1 parent 5339a17 commit c939119
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/views/devise/_links.erb
@@ -1,6 +1,7 @@
<%- if devise_mapping.omniauthable? %>
<div class="well">
<%- resource_class.omniauth_providers.each do |provider| %>
<%# <%- resource_class.omniauth_providers.each do |provider| %>
<%- [:google].each do |provider| %>
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), class: "btn btn-primary btn-large" %>
<% end -%>
</div>
Expand Down
6 changes: 3 additions & 3 deletions config/initializers/devise.rb
Expand Up @@ -208,9 +208,9 @@
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
# config.omniauth :facebook, ENV['FACEBOOK_SETUPMEETUP_APP_ID'], ENV['FACEBOOK_SETUPMEETUP_SECRET']
# config.omniauth :twitter, ENV['TWITTER_SETUPMEETUP_KEY'], ENV['TWITTER_SETUPMEETUP_SECRET']
config.omniauth :open_id, :store => OpenID::Store::Filesystem.new('/tmp'),
:name => 'google',
:identifier => 'https://www.google.com/accounts/o8/id',
config.omniauth :open_id, :store => OpenID::Store::Filesystem.new('/tmp'),
:name => 'google',
:identifier => 'https://www.google.com/accounts/o8/id',
:client_options => {:ssl => {:ca_file => '/usr/lib/ssl/certs/ca-certificates.crt'}},
:require => 'omniauth-openid'

Expand Down

0 comments on commit c939119

Please sign in to comment.