refresh oauth profile picture

This commit is contained in:
Chris Kanich
2025-05-06 11:00:35 -05:00
parent 23b9354cf6
commit 500f4d73e1
2 changed files with 70 additions and 34 deletions

View File

@@ -552,6 +552,12 @@ OAUTH_ALLOWED_DOMAINS = PersistentConfig(
],
)
OAUTH_UPDATE_PICTURE_ON_LOGIN = PersistentConfig(
"OAUTH_UPDATE_PICTURE_ON_LOGIN",
"oauth.update_picture_on_login",
os.environ.get("OAUTH_UPDATE_PICTURE_ON_LOGIN", "False").lower() == "true",
)
def load_oauth_providers():
OAUTH_PROVIDERS.clear()