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,6 +22,7 @@ func Mandatory(w http.ResponseWriter, r *http.Request) (logged bool) {
22 22
 
23 23
 		var Errors errorHandler.Errors
24 24
 		Errors.ActionForbidden("User must be logged in")
25
+		response.SetCode(errorHandler.ACTION_FORBIDDEN)
25 26
 		response.JSON(Errors)
26 27
 	}
27 28