diff options
Diffstat (limited to 'modules/middleware/auth.go')
-rw-r--r-- | modules/middleware/auth.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index 078bdfdc5b..1f979c343e 100644 --- a/modules/middleware/auth.go +++ b/modules/middleware/auth.go @@ -130,22 +130,3 @@ func Toggle(options *ToggleOptions) macaron.Handler { } } } - -// Contexter middleware already checks token for user sign in process. -func ApiReqToken() macaron.Handler { - return func(ctx *Context) { - if !ctx.IsSigned { - ctx.Error(401) - return - } - } -} - -func ApiReqBasicAuth() macaron.Handler { - return func(ctx *Context) { - if !ctx.IsBasicAuth { - ctx.Error(401) - return - } - } -} |