mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	remove debug info
This commit is contained in:
		@@ -103,7 +103,6 @@ func Http(ctx *middleware.Context) {
 | 
				
			|||||||
	// check access
 | 
						// check access
 | 
				
			||||||
	if askAuth {
 | 
						if askAuth {
 | 
				
			||||||
		baHead := ctx.Req.Header.Get("Authorization")
 | 
							baHead := ctx.Req.Header.Get("Authorization")
 | 
				
			||||||
		fmt.Println("auth:", baHead)
 | 
					 | 
				
			||||||
		if baHead == "" {
 | 
							if baHead == "" {
 | 
				
			||||||
			authRequired(ctx)
 | 
								authRequired(ctx)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
@@ -122,8 +121,6 @@ func Http(ctx *middleware.Context) {
 | 
				
			|||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		fmt.Println("auth2:", authUsername, passwd)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		authUser, err = models.GetUserByName(authUsername)
 | 
							authUser, err = models.GetUserByName(authUsername)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			ctx.Handle(401, "no basic auth and digit auth", nil)
 | 
								ctx.Handle(401, "no basic auth and digit auth", nil)
 | 
				
			||||||
@@ -137,8 +134,6 @@ func Http(ctx *middleware.Context) {
 | 
				
			|||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		fmt.Println("passwd is right")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if !isPublicPull {
 | 
							if !isPublicPull {
 | 
				
			||||||
			var tp = models.WRITABLE
 | 
								var tp = models.WRITABLE
 | 
				
			||||||
			if isPull {
 | 
								if isPull {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user