save
Saves a new UserCredentials entity to the MongoDB database.
This method resets the loginAttempts, lastLogin, and lockedUntil fields to their default values before saving the entity.
Parameters
entity
The UserCredentials entity to be saved.
Saves a new UserCredentials entity to the MongoDB database.
This method resets the loginAttempts, lastLogin, and lockedUntil fields to their default values before saving the entity.
The UserCredentials entity to be saved.