summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 56c85bf59a..a98478c9f5 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -103,6 +103,7 @@ func Http(ctx *middleware.Context) {
// check access
if askAuth {
baHead := ctx.Req.Header.Get("Authorization")
+ fmt.Println("auth:", baHead)
if baHead == "" {
authRequired(ctx)
return
@@ -121,6 +122,8 @@ 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)
@@ -134,6 +137,8 @@ func Http(ctx *middleware.Context) {
return
}
+ fmt.Println("passwd is right")
+
if !isPublicPull {
var tp = models.WRITABLE
if isPull {