Update Error Password
This commit is contained in:
parent
c41cbf91fa
commit
56e704b78b
@ -14,6 +14,7 @@ const (
|
||||
errOrderNotFound ErrType = "Astria order is not found"
|
||||
errCheckoutIDNotDefined ErrType = "Checkout client id not found"
|
||||
errInternalServer ErrType = "Internal Server error"
|
||||
errExternalServer ErrType = "External Server error"
|
||||
errUserIsNotFound ErrType = "User is not found"
|
||||
errInvalidLogin ErrType = "User email or password is invalid"
|
||||
errUnauthorized ErrType = "Unauthorized"
|
||||
@ -25,6 +26,7 @@ const (
|
||||
var (
|
||||
ErrorBadRequest = NewServiceException(errBadRequest)
|
||||
ErrorInvalidRequest = NewServiceException(errInvalidRequest)
|
||||
ErrorExternalRequest = NewServiceException(errExternalServer)
|
||||
ErrorUnauthorized = NewServiceException(errUnauthorized)
|
||||
ErrorOrderNotFound = NewServiceException(errOrderNotFound)
|
||||
ErrorClientIDNotDefined = NewServiceException(errCheckoutIDNotDefined)
|
||||
|
||||
@ -158,7 +158,7 @@ func (u *AuthServiceImpl) SendPasswordResetLink(ctx context.Context, email strin
|
||||
if err != nil {
|
||||
u.trxRepo.Rollback(trx)
|
||||
logger.ContextLogger(ctx).Error("error when sending password reset email", zap.Error(err))
|
||||
return errors.ErrorInternalServer
|
||||
return errors.ErrorExternalRequest
|
||||
}
|
||||
|
||||
trx.Commit()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user