[Update] 更新用户添加CAS来源选项

pull/3879/head
Bai 2020-04-13 13:40:08 +08:00
parent 27ffed1be9
commit 3f6d7637c3
1 changed files with 2 additions and 0 deletions

View File

@ -330,4 +330,6 @@ def get_source_choices():
choices.append((User.SOURCE_OPENID, choices_all[User.SOURCE_OPENID]))
if settings.AUTH_RADIUS:
choices.append((User.SOURCE_RADIUS, choices_all[User.SOURCE_RADIUS]))
if settings.AUTH_CAS:
choices.append((User.SOURCE_CAS, choices_all[User.SOURCE_CAS]))
return choices