mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: List, revoke and reconnect associated accounts. Phase 1 (#6099)
Listing connections is supported for all built-in auth providers. Revoke and reconnect is currently only implemented for Facebook.
This commit is contained in:
@ -6,6 +6,15 @@ class Auth::GithubAuthenticator < Auth::Authenticator
|
||||
"github"
|
||||
end
|
||||
|
||||
def enabled?
|
||||
SiteSetting.enable_github_logins
|
||||
end
|
||||
|
||||
def description_for_user(user)
|
||||
info = GithubUserInfo.find_by(user_id: user.id)
|
||||
info&.screen_name || ""
|
||||
end
|
||||
|
||||
class GithubEmailChecker
|
||||
include ::HasErrors
|
||||
|
||||
|
Reference in New Issue
Block a user