fix: 修复keycloak配置转换为openid不生效问题,持久化到数据库

pull/7725/head
halo 2022-02-20 20:42:43 +08:00 committed by Jiangjie.Bai
parent bca4b5191e
commit f95efc2274
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ class Setting(models.Model):
# 刷新 settings # 刷新 settings
for key, value in openid_config.items(): for key, value in openid_config.items():
setattr(settings, key, value) setattr(settings, key, value)
self.update_or_create(key, value, encrypted=False, category=self.category)
@classmethod @classmethod
def refresh_AUTH_RADIUS(cls): def refresh_AUTH_RADIUS(cls):