forked from forgejo/forgejo
#1127: hide user e-mail when API caller isn't signed in
This commit is contained in:
parent
ccf17a6ecb
commit
4cbbaefd82
2 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue