mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 16:04:42 +01:00
remove debug info
This commit is contained in:
parent
c8b50975bc
commit
d1911658e1
1 changed files with 0 additions and 5 deletions
|
@ -103,7 +103,6 @@ func Http(ctx *middleware.Context) {
|
|||
// check access
|
||||
if askAuth {
|
||||
baHead := ctx.Req.Header.Get("Authorization")
|
||||
fmt.Println("auth:", baHead)
|
||||
if baHead == "" {
|
||||
authRequired(ctx)
|
||||
return
|
||||
|
@ -122,8 +121,6 @@ func Http(ctx *middleware.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
fmt.Println("auth2:", authUsername, passwd)
|
||||
|
||||
authUser, err = models.GetUserByName(authUsername)
|
||||
if err != nil {
|
||||
ctx.Handle(401, "no basic auth and digit auth", nil)
|
||||
|
@ -137,8 +134,6 @@ func Http(ctx *middleware.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
fmt.Println("passwd is right")
|
||||
|
||||
if !isPublicPull {
|
||||
var tp = models.WRITABLE
|
||||
if isPull {
|
||||
|
|
Loading…
Reference in a new issue