Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Jul 5, 2024
1 parent 3cc73d3 commit c8b562d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pypnusershub/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def get_providers():
"login_url",
"logout_url",
]
print(current_app.auth_manager.provider_authentication_cls)
return jsonify(
[
dict(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c8b562d

Please sign in to comment.