Browse Source

reqToken should ask for token i/o logged in status

pull/5399/head
B-OnTheGo 6 years ago committed by GitHub
parent
commit
2d18034c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routes/api/v1/api.go

2
routes/api/v1/api.go

@ -86,7 +86,7 @@ func repoAssignment() macaron.Handler {
// Contexter middleware already checks token for user sign in process.
func reqToken() macaron.Handler {
return func(c *context.Context) {
if !c.IsLogged {
if true != c.Data["IsApiToken"] {
c.Error(401)
return
}

Loading…
Cancel
Save