save

open override fun save(entity: UserCredentials)

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.