Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CentralAuth queries #6

Open
ghost opened this issue Aug 13, 2011 · 2 comments
Open

Add support for CentralAuth queries #6

ghost opened this issue Aug 13, 2011 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Aug 13, 2011

http://code.google.com/p/perlwikipedia/issues/detail?id=109

Reported by project member mike.lifeguard, Jul 16, 2010
We have support for checking if an account was ever locked, but not support for other queries: Is an account /currently/ locked? hidden? What is the reason?

Delete comment Comment 1 by project member mike.lifeguard, Jul 24, 2010
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-High

Delete comment Comment 2 by project member mike.lifeguard, Sep 19, 2010
(No comment was entered for this change.)
Owner: ---
Cc: mike.lifeguard

Delete comment Comment 3 by project member mike.lifeguard, Mar 26, 2011
This is not currently a priority.
Status: New
Labels: -Priority-High Priority-Medium

Delete comment Comment 4 by project member mike.lifeguard, Jun 4, 2011
There are log types available, but it doesn't appear that /current/ status can be queried.

http://meta.wikimedia.org/w/api.php?action=help&querymodules=logevents
@wp-seth wp-seth self-assigned this Sep 25, 2021
@wp-seth
Copy link
Member

wp-seth commented Sep 25, 2021

there is is_blocked now which returns whether a user is currently blocked.
however, it does not give more information (about the reason for blocking etc.).

so i suggest to let this function return a hash ref with all the information from the API. this should be downward-compatible in most cases, but not all cases. so i'd mark this a feature the next major version.

wp-seth pushed a commit that referenced this issue Sep 25, 2021
fixes #6
BREAKING CHANGE: the returned positive value is not 1 any longer, but a
hash ref (which evaluates to true in a simple if condition).
@wp-seth
Copy link
Member

wp-seth commented Nov 7, 2021

oops, you were talking about locked and not blocked. sorry for my misunderstanding.

the current state might be checked by fetching all locked and unlocked states and then see what is the newest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant