Skip to content

Commit f627daf

Browse files
authored
fix: Password authentication (#3507)
1 parent c999937 commit f627daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/auth/handle/impl/chat_anonymous_user_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def handle(self, request, token: str, get_token_details):
4545
if application_setting_model is not None:
4646
application_setting = QuerySet(application_setting_model).filter(application_id=application_id).first()
4747
if application_setting.authentication:
48-
if 'password' != application_setting.authentication_value.get('type', ''):
48+
if chat_user_token.authentication.auth_type != application_setting.authentication_value.get('type', ''):
4949
raise AppAuthenticationFailed(1002, _('Authentication information is incorrect'))
5050
return None, ChatAuth(
5151
current_role_list=[RoleConstants.CHAT_ANONYMOUS_USER],

0 commit comments

Comments
 (0)