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

Added last_login on the list_users method #60

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Jacksonville
Copy link

I was interested in this information for my user admin screen

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 657d39c on Jacksonville:master into e432660 on FedericoCeratto:master.

@Jacksonville
Copy link
Author

Updated the test cases to pass

@Jacksonville
Copy link
Author

Hi @FedericoCeratto could you please have a look at merging this pull request?
I am keen to view the last login value on my admin page.
Thank you.

@FedericoCeratto
Copy link
Owner

Hi @Jacksonville, adding last_login to list_users would change the API and also require every other backend to implement last_login. What would you think of having last_login as an optional feature?

@Jacksonville
Copy link
Author

No problem @FedericoCeratto, sounds like a plan.
Do you have an example of an optional feature that I can use for reference?

@FedericoCeratto
Copy link
Owner

@Jacksonville I don't, but it could be added with a global flag to enable it. When enabled on a backend that supports it, it would be updated on every login and maybe returned by a last_login() property.

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

Successfully merging this pull request may close these issues.

3 participants