sources/oauth: disable twitter source while its broken
This commit is contained in:
parent
8c500c38b1
commit
571cb3d65f
|
@ -89,16 +89,16 @@ class GitHubOAuthSource(OAuthSource):
|
|||
verbose_name_plural = _("GitHub OAuth Sources")
|
||||
|
||||
|
||||
class TwitterOAuthSource(OAuthSource):
|
||||
"""Social Login using Twitter.com"""
|
||||
# class TwitterOAuthSource(OAuthSource):
|
||||
# """Social Login using Twitter.com"""
|
||||
|
||||
form = "passbook.sources.oauth.forms.TwitterOAuthSourceForm"
|
||||
# form = "passbook.sources.oauth.forms.TwitterOAuthSourceForm"
|
||||
|
||||
class Meta:
|
||||
# class Meta:
|
||||
|
||||
abstract = True
|
||||
verbose_name = _("Twitter OAuth Source")
|
||||
verbose_name_plural = _("Twitter OAuth Sources")
|
||||
# abstract = True
|
||||
# verbose_name = _("Twitter OAuth Source")
|
||||
# verbose_name_plural = _("Twitter OAuth Sources")
|
||||
|
||||
|
||||
class FacebookOAuthSource(OAuthSource):
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""Twitter OAuth Views"""
|
||||
from passbook.sources.oauth.types.manager import MANAGER, RequestKind
|
||||
# from passbook.sources.oauth.types.manager import MANAGER, RequestKind
|
||||
from passbook.sources.oauth.utils import user_get_or_create
|
||||
from passbook.sources.oauth.views.core import OAuthCallback
|
||||
|
||||
|
||||
@MANAGER.source(kind=RequestKind.callback, name="Twitter")
|
||||
# @MANAGER.source(kind=RequestKind.callback, name="Twitter")
|
||||
class TwitterOAuthCallback(OAuthCallback):
|
||||
"""Twitter OAuth2 Callback"""
|
||||
|
||||
|
|
Reference in a new issue