def _get_auth_from_console(self, realm):
self.user, self.password = self.AUTH_MEMOIZE_INPUT.get(realm, (self.user, None))<EOL>if not self.auth_valid():<EOL><INDENT>if not self.user:<EOL><INDENT>login = getpass.getuser()<EOL>self.user = self._raw_input('<STR_LIT>'.format(realm, login)) or login<EOL><DEDENT>self.password = getpass.getpass('<STR_LIT>'.format(realm))<EOL>Credentials.AUTH_MEMOIZE_INPUT[realm] = self.user, self.password<EOL><DEDENT>return '<STR_LIT>'<EOL>
Prompt for the user and password.