Skip to content

Commit

Permalink
More cases where auth fails
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Nov 13, 2019
1 parent c237bc3 commit 2f74512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions w3af/plugins/auth/detailed.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def login(self):
follow_redirects=self.follow_redirects,
debugging_id=self._debugging_id)
except Exception, e:
self._handle_authentication_failure()

msg = 'Failed to login to the application because of exception: %s'
self._log_debug(msg % e)
return False
Expand Down
2 changes: 2 additions & 0 deletions w3af/plugins/auth/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def login(self):
follow_redirects=True,
debugging_id=self._debugging_id)
except Exception, e:
self._handle_authentication_failure()

msg = 'Failed to login to the application because of exception: %s'
self._log_debug(msg % e)
return False
Expand Down

0 comments on commit 2f74512

Please sign in to comment.