mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
fix: Password authentication (#3507)
This commit is contained in:
parent
c99993795d
commit
f627daf231
|
|
@ -45,7 +45,7 @@ class ChatAnonymousUserToken(AuthBaseHandle):
|
|||
if application_setting_model is not None:
|
||||
application_setting = QuerySet(application_setting_model).filter(application_id=application_id).first()
|
||||
if application_setting.authentication:
|
||||
if 'password' != application_setting.authentication_value.get('type', ''):
|
||||
if chat_user_token.authentication.auth_type != application_setting.authentication_value.get('type', ''):
|
||||
raise AppAuthenticationFailed(1002, _('Authentication information is incorrect'))
|
||||
return None, ChatAuth(
|
||||
current_role_list=[RoleConstants.CHAT_ANONYMOUS_USER],
|
||||
|
|
|
|||
Loading…
Reference in New Issue