diff --git a/internal/services/errors.go b/internal/services/errors.go index 83dcb93..b01e2de 100644 --- a/internal/services/errors.go +++ b/internal/services/errors.go @@ -3,21 +3,21 @@ package services import "errors" var ( - ErrUserNameExists = errors.New("The username exists") - ErrSendingMail = errors.New("Failed sending Email") - ErrAccountNotActive = errors.New("Account is not Active") - ErrTokenGeneration = errors.New("Failed to generate Token") - ErrInvalidToken = errors.New("Token is Invalid") - ErrAccessToken = errors.New("Failed to Access Token") - ErrInvalidUsername = errors.New("Invalid Username") - ErrInvalidPassword = errors.New("Invalid Password") - ErrRegistration = errors.New("Failed to register ") - ErrPasswordUpdate = errors.New("Failed to update password") - ErrTwoFactorCode = errors.New("Failed to Verify Two Factor Code") - ErrTwoFactorRequest = errors.New("Failed to Send Two Factor Request") - ErrInvalidCode = errors.New("Code is invalid") - ErrServer = errors.New("Server Error, Try again later") - ErrPassCode = errors.New("Invalid Passcode") - ErrStrongPassword = errors.New("Password must be at least 8 characters and must contain special characters") - ErrTOTPExists = errors.New("TOTP Already Enabled ") + ErrUserNameExists = errors.New("the username exists") + ErrSendingMail = errors.New("failed sending email") + ErrAccountNotActive = errors.New("account is not active") + ErrTokenGeneration = errors.New("failed to generate token") + ErrInvalidToken = errors.New("token is invalid") + ErrAccessToken = errors.New("failed to access token") + ErrInvalidUsername = errors.New("invalid username") + ErrInvalidPassword = errors.New("invalid password") + ErrRegistration = errors.New("failed to register ") + ErrPasswordUpdate = errors.New("failed to update password") + ErrTwoFactorCode = errors.New("failed to verify two factor code") + ErrTwoFactorRequest = errors.New("failed to send two factor request") + ErrInvalidCode = errors.New("code is invalid") + ErrServer = errors.New("server error, try again later") + ErrPassCode = errors.New("invalid Passcode") + ErrStrongPassword = errors.New("password must be at least 8 characters and must contain special characters") + ErrTOTPExists = errors.New("totp already enabled ") )