# Functions

BlackListIP is a function that handles the blacklisting of IP addresses.
ChangePassword is a function that handles the change password request.
CheckUserIsActive checks if a user is active.
DestroyAccount is a handler function that destroys a user account.
EnableTowFactor enables two-factor authentication for a user.
ForgetPassword handles the forget password functionality.
GetProfileUser retrieves the profile information of a user based on the provided ID.
No description provided by the author
LoginSocial handles the login process for social authentication.
Logout logs out the user and clears the session.
Register handles the registration process for a user.
RenewToken generates a new access token and refresh token for the user, and returns a LoginResponse containing the user's ID, email, device ID, and access token.
ResendVerificationLink is a function that handles the resend verification link request.
ResetPassword resets the password for a user.
SendOtp generates and sends an OTP (One-Time Password) to the user.
@Summary Send OTP to update email @Description Sends an OTP to update the user's email @Tags Users @Accept json @Produce json @Param X-Device-Id header string true "Device ID" @Param body body models.UpdateEmailParams true "Update email request body" @Param Authorization header string true "Insert your access token" default(Bearer <Add access token here>) @Success 200 {object} models.SendOtpResponse @Failure 400 {object} response.ErrorResponse @Failure 500 {object} response.ErrorResponse @Router /user/send-otp-update-email [post].
UpdateEmailUser updates the email of a user based on the provided request body.
UpdateProfileUser updates the profile of a user based on the provided request body.
VerificationAccount is a function that handles the verification of a user's account.
VerificationOtp handles the verification of OTP (One-Time Password) for user login.
VeriOtp verifies the OTP (One-Time Password) provided in the request.