Esempio n. 1
0
 def check_auth_interactive(self, username, submethods):
     self.username = username
     query = InteractiveQuery()
     query.add_prompt('password: ', echo=False)
     return query
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
 def check_auth_interactive(self, username, submethods):
     self.username = username
     query = InteractiveQuery()
     query.add_prompt('password: ', echo=False)
     return query