sources/oauth: disable twitter source while its broken

This commit is contained in:
Jens Langhammer 2020-07-07 22:25:50 +02:00
parent 8c500c38b1
commit 571cb3d65f
2 changed files with 9 additions and 9 deletions

View File

@ -89,16 +89,16 @@ class GitHubOAuthSource(OAuthSource):
verbose_name_plural = _("GitHub OAuth Sources") verbose_name_plural = _("GitHub OAuth Sources")
class TwitterOAuthSource(OAuthSource): # class TwitterOAuthSource(OAuthSource):
"""Social Login using Twitter.com""" # """Social Login using Twitter.com"""
form = "passbook.sources.oauth.forms.TwitterOAuthSourceForm" # form = "passbook.sources.oauth.forms.TwitterOAuthSourceForm"
class Meta: # class Meta:
abstract = True # abstract = True
verbose_name = _("Twitter OAuth Source") # verbose_name = _("Twitter OAuth Source")
verbose_name_plural = _("Twitter OAuth Sources") # verbose_name_plural = _("Twitter OAuth Sources")
class FacebookOAuthSource(OAuthSource): class FacebookOAuthSource(OAuthSource):

View File

@ -1,10 +1,10 @@
"""Twitter OAuth Views""" """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.utils import user_get_or_create
from passbook.sources.oauth.views.core import OAuthCallback 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): class TwitterOAuthCallback(OAuthCallback):
"""Twitter OAuth2 Callback""" """Twitter OAuth2 Callback"""