Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Answer to #317 @tarraschk
TL;DR: This commit raise a false flag as soon as it detects error messages from the response, and unit tests have been added.
This is only a small improvement, but we can only go little by little to improve this feature, since knowing if we are logged in regardless of which website we are on is a thought challenge.
Unless someone has a genuine idea, I leave here things that already have been explored:
A good approach would be a smart combination of all those checks with a prioritizing system, but it might be a better idea to move this mechanism somewhere else than in the parser because a simple method in the html_parser wouldn't be enough. A full object might be required in the future to take advantages of all the information we can have on a higher scope
Again, we should be very cautious when improving this method since we want to minimize false negative but absolutely want to avoid false positive.