code: def passwordLogin(self, username):
          
          self.challenge = secureRandom(16)
          self.username = username
          return {'challenge': self.challenge}
docs: Generate a new challenge for the given username.