summaryrefslogtreecommitdiffstats
path: root/utils/auth/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/auth/auth.go')
-rw-r--r--utils/auth/auth.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/auth/auth.go b/utils/auth/auth.go
new file mode 100644
index 0000000000..1099103403
--- /dev/null
+++ b/utils/auth/auth.go
@@ -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)
+}