diff options
author | Unknwon <u@gogs.io> | 2016-07-21 14:15:04 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-21 14:15:04 +0800 |
commit | 57af7432fc07f630e435228a306a9deeb3fefa1e (patch) | |
tree | 6ba47956027d61989c34c3da427f75d72c58168a | |
parent | 1c7dcdd6b948b9c177b5ed4e036e612508ee9832 (diff) | |
download | gitea-57af7432fc07f630e435228a306a9deeb3fefa1e.tar.gz gitea-57af7432fc07f630e435228a306a9deeb3fefa1e.zip |
#3295 fix wrong logic judgement
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/login.go | 2 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -3,7 +3,7 @@ Gogs - Go Git Service [ -##### Current tip version: 0.9.46 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions) +##### Current tip version: 0.9.47 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions) | Web | UI | Preview | |:-------------:|:-------:|:-------:| @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.9.46.0717" +const APP_VER = "0.9.47.0721" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/models/login.go b/models/login.go index 84f17d18e5..dd90c5d86e 100644 --- a/models/login.go +++ b/models/login.go @@ -296,7 +296,7 @@ func LoginUserLDAPSource(u *User, loginName, passwd string, source *LoginSource, username = loginName } // Validate username make sure it satisfies requirement. - if !binding.AlphaDashDotPattern.MatchString(username) { + if binding.AlphaDashDotPattern.MatchString(username) { return nil, fmt.Errorf("Invalid pattern for attribute 'username' [%s]: must be valid alpha or numeric or dash(-_) or dot characters", username) } diff --git a/templates/.VERSION b/templates/.VERSION index c0497e65c5..f100703355 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.46.0717
\ No newline at end of file +0.9.47.0721
\ No newline at end of file |