def render(self, form=None, **kwargs):
if self.steps.current == '<STR_LIT>':<EOL><INDENT>self.get_device().generate_challenge()<EOL><DEDENT>return super(LoginView, self).render(form, **kwargs)<EOL>
If the user selected a device, ask the device to generate a challenge;
either making a phone call or sending a text message.