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

/api/get-user-count got number of users logged in always 0 #2233

Open
bestHAI opened this issue Aug 9, 2023 · 3 comments
Open

/api/get-user-count got number of users logged in always 0 #2233

bestHAI opened this issue Aug 9, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@bestHAI
Copy link

bestHAI commented Aug 9, 2023

The API /api/get-user-count gets the number of users logged in, but it's always 0? Even if a user is already logged in, it's still 0

See: https://door.casdoor.com/api/get-user-count?isOnline=1 , result is always 0

image

This is because User's isOnline field is not set to true in any conditions. This feature is just not implemented yet

image

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the bug Something isn't working label Aug 9, 2023
@hsluoyz hsluoyz added invalid This doesn't seem right and removed bug Something isn't working labels Aug 9, 2023
@hsluoyz hsluoyz closed this as completed Aug 9, 2023
@hsluoyz hsluoyz changed the title [bug] /api/get-user-count got number of users logged in always 0 /api/get-user-count got number of users logged in always 0 Aug 9, 2023
@hsluoyz hsluoyz reopened this Aug 11, 2023
@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the enhancement New feature or request label Aug 11, 2023
@hsluoyz hsluoyz transferred this issue from casdoor/casdoor Aug 11, 2023
@hsluoyz hsluoyz added bug Something isn't working and removed enhancement New feature or request invalid This doesn't seem right labels Aug 11, 2023
@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the enhancement New feature or request label Aug 18, 2023
@hsluoyz hsluoyz transferred this issue from casdoor/casdoor-java-sdk Aug 18, 2023
@hsluoyz hsluoyz removed the enhancement New feature or request label Aug 18, 2023
@hsluoyz hsluoyz added enhancement New feature or request and removed bug Something isn't working labels Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants