aboutsummaryrefslogtreecommitdiffstats
path: root/models/login.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-05 05:32:47 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-05 05:32:47 -0400
commit3b7465f8171ddcc992498e14d8b608cad34c26da (patch)
treec78568eb08955ca968f793e9e7ae1d2f2e6f0415 /models/login.go
parentd8136c9c3cf0f7d84510402f01cbe07a656a0587 (diff)
downloadgitea-3b7465f8171ddcc992498e14d8b608cad34c26da.tar.gz
gitea-3b7465f8171ddcc992498e14d8b608cad34c26da.zip
fix code
Diffstat (limited to 'models/login.go')
-rw-r--r--models/login.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/models/login.go b/models/login.go
index d5905eb36b..21e1ce686a 100644
--- a/models/login.go
+++ b/models/login.go
@@ -1,3 +1,7 @@
+// Copyright github.com/juju2013. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package models
import (
@@ -7,6 +11,7 @@ import (
"github.com/go-xorm/core"
"github.com/go-xorm/xorm"
+
"github.com/gogits/gogs/modules/auth/ldap"
)
@@ -19,7 +24,7 @@ const (
var (
ErrAuthenticationAlreadyExist = errors.New("Authentication already exist")
- ErrAuthenticationNotExist = errors.New("Authentication is not exist")
+ ErrAuthenticationNotExist = errors.New("Authentication does not exist")
ErrAuthenticationUserUsed = errors.New("Authentication has been used by some users")
)