]> source.dussan.org Git - gitea.git/commitdiff
#3295 fix wrong logic judgement
authorUnknwon <u@gogs.io>
Thu, 21 Jul 2016 06:15:04 +0000 (14:15 +0800)
committerUnknwon <u@gogs.io>
Thu, 21 Jul 2016 06:15:04 +0000 (14:15 +0800)
README.md
gogs.go
models/login.go
templates/.VERSION

index 26b515d788926b893f8b392f60b6b6756c6d1db9..d2476577b4f36727e4fdaef06fbde5203b07b1d3 100644 (file)
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
 
 ![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
 
-##### 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  |
 |:-------------:|:-------:|:-------:|
diff --git a/gogs.go b/gogs.go
index efb9c915e63395640eef7a73882b446e2bb70d5d..a6748371e83f0c766d928e5387b0583a7da85b0b 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -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())
index 84f17d18e5004252bf81026380348982d175d038..dd90c5d86e3d1637976f7b21d6a8fe999933b9b2 100644 (file)
@@ -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)
        }
 
index c0497e65c5eafd8d416659390e9af6706133f915..f10070335585619085308a9f479246635d92588e 100644 (file)
@@ -1 +1 @@
-0.9.46.0717
\ No newline at end of file
+0.9.47.0721
\ No newline at end of file