From 5f20d4876993442944a44d016a96f0d01b2ef1a5 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Tue, 4 Oct 2022 11:07:01 -0500 Subject: [PATCH] remove __init__() --- wp_oauth_backend/wp_oauth.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wp_oauth_backend/wp_oauth.py b/wp_oauth_backend/wp_oauth.py index e19f316..2af0d83 100644 --- a/wp_oauth_backend/wp_oauth.py +++ b/wp_oauth_backend/wp_oauth.py @@ -24,12 +24,6 @@ class StepwiseMathWPOAuth2(BaseOAuth2): see https://python-social-auth.readthedocs.io/en/latest/backends/implementation.html """ - def __init__(self, strategy, redirect_uri=None): - super().__init__(strategy, redirect_uri) - - if VERBOSE_LOGGING: - logger.info('StepwiseMathWPOAuth2() - ready.') - # This defines the backend name and identifies it during the auth process. # The name is used in the URLs /login/ and /complete/. # @@ -74,6 +68,7 @@ class StepwiseMathWPOAuth2(BaseOAuth2): # (which should be a dict instance) and alias is the name to store it on extra_data. EXTRA_DATA = [ ('id', 'id'), + ('wp_username', 'wp_username'), ('is_superuser', 'is_superuser'), ('is_staff', 'is_staff'), ('date_joined', 'date_joined'),