Tgr added a comment.

  If you have seen it with multiple accounts then probably what happened is 
that the bot hit the failed logins per IP threshold; after that, for a while, 
all login attempts from that IP get a captcha. This has been around for a long 
time (and is an example of why the clientlogin API is kind of unpredictable) 
but most users never encounter it since you need a number of successive login 
failures to trigger it.
  
  In T396927#10915795 <https://phabricator.wikimedia.org/T396927#10915795>, 
@Xqt wrote:
  
  > btw the error message is given when the status code of the response is 
'FAIL', see 
https://gerrit.wikimedia.org/g/pywikibot/core/+/f0d5da00e540359b4f2f55c18ff56e84b0d89a7e/pywikibot/login.py#295
  
  That seems like a copy-paste mistake maybe? FAIL isn't related to permissions 
in any way.
  Also, the `status` field is always going to be FAIL when the login attempt 
fails. If you want to provide information on what happened, you should use the 
`message` or `messagecode` field.

TASK DETAIL
  https://phabricator.wikimedia.org/T396927

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to