mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
adapter_deviantartcom: Bad username fails separately than bad pass. #1052
This commit is contained in:
parent
4453cbb143
commit
8d040a4926
1 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,10 @@ class DeviantArtComSiteAdapter(BaseSiteAdapter):
|
|||
|
||||
result = self.post_request(loginUrl, params, usecache=False)
|
||||
soup = self.make_soup(result)
|
||||
if not soup.find('input', {'name': 'lu_token2'}):
|
||||
logger.info("Login Failed for URL %s (no lu_token2 found)" % url)
|
||||
raise exceptions.FailedToLogin(url,username)
|
||||
|
||||
params = {
|
||||
'referer': 'https://www.deviantart.com/_sisu/do/signin', # soup.find('input', {'name': 'referer'})['value'],
|
||||
'referer_type': soup.find('input', {'name': 'referer_type'})['value'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue