Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassWord ¶
ChangePassWord godoc @Summary Users can change password @Description Users can change password @Tags otp @Accept json @Produce json @Param otp path string true "OTP" @Param email body string true "Email" @Param pass_word_new body string true "PassWordNew" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/change_password/{otp} [patch]
func SendOTP ¶
SendOTP godoc @Summary Send OTP to email @Description Send OTP to email @Tags otp @Accept json @Produce json @Param email body string true "Email" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/send_otp [post]
func VerifiOTP ¶
VerifiOTP godoc @Summary Users can verify OTP @Description Users can verify OTP @Tags otp @Accept json @Produce json @Param otp path string true "OTP" @Param email body string true "Email" @Success 200 {object} res.Response @Failure 400 {object} res.Response @Failure 403 {object} res.Response @Failure 500 {object} res.Response @Router /v1/api/users/verify_otp/{otp} [patch]