mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Added Instagram login method
This commit is contained in:
@ -10,7 +10,8 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
Auth::GoogleOAuth2Authenticator.new,
|
||||
Auth::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", trusted: true),
|
||||
Auth::GithubAuthenticator.new,
|
||||
Auth::TwitterAuthenticator.new
|
||||
Auth::TwitterAuthenticator.new,
|
||||
Auth::InstagramAuthenticator.new
|
||||
]
|
||||
|
||||
skip_before_filter :redirect_to_login_if_required
|
||||
@ -18,7 +19,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
layout false
|
||||
|
||||
def self.types
|
||||
@types ||= Enum.new(:facebook, :twitter, :google, :yahoo, :github, :persona, :cas)
|
||||
@types ||= Enum.new(:facebook, :instagram, :twitter, :google, :yahoo, :github, :persona, :cas)
|
||||
end
|
||||
|
||||
# need to be able to call this
|
||||
|
Reference in New Issue
Block a user