#NEWLINE# def require_sms_code( self , html , session ) : #NEWLINE# #INDENT# logger . info ( 'User enabled 2 factors authorization. Auth check code is needed' ) #NEWLINE# action_url = parse_form_action_url ( html ) #NEWLINE# auth_check_code = self . get_sms_code ( ) #NEWLINE# auth_check_data = { #NEWLINE# #INDENT# 'code' : auth_check_code , #NEWLINE# '_ajax' : '1' , #NEWLINE# 'remember' : '1' , #NEWLINE# #UNINDENT# } #NEWLINE# response = session . post ( action_url , data = auth_check_data ) #NEWLINE# return response