mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Update
This commit is contained in:
15
utils/auth/auth.go
Normal file
15
utils/auth/auth.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 The Gogs Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gogits/validation"
|
||||
)
|
||||
|
||||
func GenerateErrorMsg(e *validation.ValidationError) string {
|
||||
return fmt.Sprintf("%v", e.LimitValue)
|
||||
}
|
Reference in New Issue
Block a user