aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-03 19:03:08 -0500
committerUnknown <joe2010xtmf@163.com>2014-03-03 19:03:08 -0500
commite59f90b8fee3e615d1b60067bfc0d636606899d8 (patch)
treee37db19d1492235875259f34ed08506f74631270 /utils
parentfea660f1d787f353f06632982861000c9078da2e (diff)
Update
Diffstat (limited to 'utils')
-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 00000000..10991034
--- /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)
+}