Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmike committed Aug 24, 2019
1 parent 425f90c commit e56ce72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -43,6 +43,7 @@ end
gem 'devise' gem 'devise'
gem 'test_after_commit', :group => :test # https://github.com/plataformatec/devise/blob/master/CHANGELOG.md#410 gem 'test_after_commit', :group => :test # https://github.com/plataformatec/devise/blob/master/CHANGELOG.md#410
gem 'omniauth' gem 'omniauth'
gem 'omniauth-rails_csrf_protection', '~> 0.1'
gem 'omniauth-github', git: 'https://github.com/alexandrz/omniauth-github.git', branch: 'provide_emails' gem 'omniauth-github', git: 'https://github.com/alexandrz/omniauth-github.git', branch: 'provide_emails'
gem 'cancancan' gem 'cancancan'
gem 'twitter_bootstrap_form_for', git: 'https://github.com/stouset/twitter_bootstrap_form_for.git' gem 'twitter_bootstrap_form_for', git: 'https://github.com/stouset/twitter_bootstrap_form_for.git'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -271,6 +271,9 @@ GEM
omniauth-oauth2 (1.4.0) omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0) oauth2 (~> 1.0)
omniauth (~> 1.2) omniauth (~> 1.2)
omniauth-rails_csrf_protection (0.1.2)
actionpack (>= 4.2)
omniauth (>= 1.3.1)
orm_adapter (0.5.0) orm_adapter (0.5.0)
pg (0.20.0) pg (0.20.0)
poltergeist (1.15.0) poltergeist (1.15.0)
Expand Down Expand Up @@ -440,6 +443,7 @@ DEPENDENCIES
octokit octokit
omniauth omniauth
omniauth-github! omniauth-github!
omniauth-rails_csrf_protection (~> 0.1)
pg pg
poltergeist poltergeist
quiet_assets quiet_assets
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.haml
Expand Up @@ -14,7 +14,7 @@
- if devise_mapping.omniauthable? - if devise_mapping.omniauthable?
%h4 Sign in with a provider %h4 Sign in with a provider
- resource_class.omniauth_providers.each do |provider| - resource_class.omniauth_providers.each do |provider|
= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider, origin: params[:return_url]), class: "btn btn-primary btn-block" = link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider, origin: params[:return_url]), class: "btn btn-primary btn-block", method: :post
.col-md-4 .col-md-4
%h4 Other options %h4 Other options
= render "devise/shared/links" = render "devise/shared/links"

0 comments on commit e56ce72

Please sign in to comment.