From c6f5f4096b8278594ab0e4fe5f8e61de78cba948 Mon Sep 17 00:00:00 2001 From: john Date: Tue, 11 Oct 2022 15:05:08 +0300 Subject: [PATCH] MSP-1071 add login error request --- domain/errors.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/domain/errors.go b/domain/errors.go index 3ab40c8..142040a 100644 --- a/domain/errors.go +++ b/domain/errors.go @@ -5,12 +5,13 @@ import ( ) var ( - ErrNotFound = errors.New("not found") - ErrUnauthenticated = errors.New("authentication failure") - ErrSudirAuthorization = errors.New("User is authorized only with SUDIR") - ErrSudirAuthIsMissed = errors.New("SUDIR authorization is not configured on the server") - ErrInvalid = errors.New("entity is invalid") - ErrAlreadyExists = errors.New("already exists") - ErrTokenExpired = errors.New("token expired") - ErrTokenNotFound = errors.New("token not found") + ErrNotFound = errors.New("not found") + ErrUnauthenticated = errors.New("authentication failure") + ErrSudirAuthorization = errors.New("User is authorized only with SUDIR") + ErrSudirAuthIsMissed = errors.New("SUDIR authorization is not configured on the server") + ErrInvalid = errors.New("entity is invalid") + ErrAlreadyExists = errors.New("already exists") + ErrTokenExpired = errors.New("token expired") + ErrTokenNotFound = errors.New("token not found") + ErrTooManyLoginRequests = errors.New("too many login requests") )