#1127: hide user e-mail when API caller isn't signed in

This commit is contained in:
Unknwon committed 2015-07-15 12:59:43 +08:00
1 parent ccf17a6ecb
commit 4cbbaefd82
2 files changed
+6

No files matched your search

+1
View File
@@ -69,6 +69,7 @@ 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 {