def check_auth_interactive(self, username, submethods): self.username = username query = InteractiveQuery() query.add_prompt('password: ', echo=False) return query
def check_auth_interactive(self, username, submethods): if username == "commie": self.username = username return InteractiveQuery("password", "Please enter a password.", ("Password", False)) return AUTH_FAILED
def check_auth_interactive(self, username, submethods): if username == 'commie': self.username = username return InteractiveQuery('password', 'Please enter a password.', ('Password', False)) return AUTH_FAILED