Browse Source

Set code error hhttp

William Wiechorek 6 years ago
parent
commit
80d6665576
2 changed files with 1 additions and 0 deletions
  1. BIN
      build
  2. 1 0
      src/middleware/login/login.go

BIN
build


+ 1 - 0
src/middleware/login/login.go

22
 
22
 
23
 		var Errors errorHandler.Errors
23
 		var Errors errorHandler.Errors
24
 		Errors.ActionForbidden("User must be logged in")
24
 		Errors.ActionForbidden("User must be logged in")
25
+		response.SetCode(errorHandler.ACTION_FORBIDDEN)
25
 		response.JSON(Errors)
26
 		response.JSON(Errors)
26
 	}
27
 	}
27
 
28