else:
username = self.ui.ask_username()
password = self.ui.ask_password()
- self.storage_mgr['username'] = username
- self.storage_mgr['password'] = encode(password)
url = 'https://' + self.bb_root.host + str(self.bb_root.path)
with self.parent.open(url) as resp:
with self.parent.open(req) as resp:
resp.read()
+ if resp.url.endswith('/webapps/login'):
+ log('error', "Login failed. Are your credentials correct?")
+ else:
+ self.storage_mgr['username'] = username
+ self.storage_mgr['password'] = encode(password)
+
self.cookiejar.save()
def http_error_401(self, request, fp, code, msg, headers):