mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	In progress of name template name constant
This commit is contained in:
		@@ -318,7 +318,7 @@ func basicDecode(encoded string) (user string, name string, err error) {
 | 
			
		||||
func authRequired(ctx *middleware.Context) {
 | 
			
		||||
	ctx.ResponseWriter.Header().Set("WWW-Authenticate", "Basic realm=\".\"")
 | 
			
		||||
	ctx.Data["ErrorMsg"] = "no basic auth and digit auth"
 | 
			
		||||
	ctx.HTML(401, fmt.Sprintf("status/401"))
 | 
			
		||||
	ctx.HTML(401, base.TplName("status/401"))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Action(ctx *middleware.Context, params martini.Params) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user