File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
chaoscenter/authentication/api/handlers/rest Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,13 +286,13 @@ func LoginUser(service services.ApplicationService) gin.HandlerFunc {
286
286
user , err := service .FindUserByUsername (userRequest .Username )
287
287
if err != nil {
288
288
log .Error (err )
289
- c .JSON (utils .ErrorStatusCodes [utils .ErrUserNotFound ], presenter .CreateErrorResponse (utils .ErrInvalidCredentials ))
289
+ c .JSON (utils .ErrorStatusCodes [utils .ErrInvalidCredentials ], presenter .CreateErrorResponse (utils .ErrInvalidCredentials ))
290
290
return
291
291
}
292
292
293
293
// Checking if user is deactivated
294
294
if user .DeactivatedAt != nil {
295
- c .JSON (utils .ErrorStatusCodes [utils .ErrUserDeactivated ], presenter .CreateErrorResponse (utils .ErrInvalidCredentials ))
295
+ c .JSON (utils .ErrorStatusCodes [utils .ErrInvalidCredentials ], presenter .CreateErrorResponse (utils .ErrInvalidCredentials ))
296
296
return
297
297
}
298
298
You can’t perform that action at this time.
0 commit comments