From c8b562d00f9b610a777d78e8c0fd893ed9792e5f Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Fri, 5 Jul 2024 10:52:43 +0200 Subject: [PATCH] wip --- src/pypnusershub/routes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pypnusershub/routes.py b/src/pypnusershub/routes.py index f55a3ba..ac5add9 100755 --- a/src/pypnusershub/routes.py +++ b/src/pypnusershub/routes.py @@ -93,7 +93,6 @@ def get_providers(): "login_url", "logout_url", ] - print(current_app.auth_manager.provider_authentication_cls) return jsonify( [ dict( @@ -304,8 +303,7 @@ def insert_or_update_role( ).scalar_one() if user_exists: if not provider in user_exists.providers: - user_exists.providers.append(provider) - user.update(user_exists.as_dict()) + user.providers.append(provider) db.session.add(user) db.session.commit() return user_exists