You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: