File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ def profile(self):
6969 application_setting = QuerySet (application_setting_model ).filter (application_id = application_id ).first ()
7070 types = QuerySet (chat_platform ).filter (is_active = True , is_valid = True ).values_list ('auth_type' , flat = True )
7171 login_value = application_access_token .authentication_value .get ('login_value' , [])
72+ max_attempts = application_access_token .authentication_value .get ('max_attempts' , 1 )
7273 final_login_value = list (set (login_value ) & set (types ))
7374 if 'LOCAL' in login_value :
7475 final_login_value .insert (0 , 'LOCAL' )
@@ -80,6 +81,7 @@ def profile(self):
8081 'authentication' : application_access_token .authentication ,
8182 'authentication_type' : application_access_token .authentication_value .get (
8283 'type' , 'password' ),
84+ 'max_attempts' : max_attempts ,
8385 'login_value' : final_login_value
8486 }
8587 return profile
You can’t perform that action at this time.
0 commit comments