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

lastLoginField is only added to model when limitAttempts is set to true #237

Open
tvrancken opened this issue Dec 27, 2017 · 0 comments
Open

Comments

@tvrancken
Copy link

The lastLoginField is only added to the user model when limitAttempts is set to true. The lastLoginField however is also a nice statistic to have even when not limiting login attempts. It would be nice if passport-local-mongoose manages this field because it also manages login / authentication. Would it be possible to default add it to the user model and update its value every successful login? In order for limit attempts to work you might need to have two fields; one for keeping track of login attempts and one for keeping track of a successful login.

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

No branches or pull requests

1 participant