diff --git a/umap/settings/base.py b/umap/settings/base.py index 388fa1a9..4e25b5ea 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -213,5 +213,5 @@ SOCIAL_AUTH_PIPELINE = ( 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', - 'umap.utils.user_details' + 'umap.utils.oauth_user_details' ) diff --git a/umap/utils.py b/umap/utils.py index 1b1f9e0e..38fb210d 100644 --- a/umap/utils.py +++ b/umap/utils.py @@ -110,8 +110,12 @@ def gzip_file(from_path, to_path): with gzip.open(to_path, 'wb') as f_out: f_out.writelines(f_in) -def user_details(strategy, details, user=None, *args, **kwargs): - """Update user details using data from provider.""" +def oauth_user_details(strategy, details, user=None, *args, **kwargs): + """ + This method is a pipeline stage only to be used with social_auth + Note this is a workaround that can break if social_auth is updated + Update user details using data from provider. + """ if not user: return