Merge pull request #13581 from kaytwo/refreshOauthPfp

feat: refresh oauth profile picture
This commit is contained in:
Tim Jaeryang Baek
2025-05-07 22:06:43 +04:00
committed by GitHub
2 changed files with 70 additions and 34 deletions
+6
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()