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")
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):

View file

@ -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"""