Browse Source

#3295 fix wrong logic judgement

tags/v0.9.99
Unknwon 8 years ago
parent
commit
57af7432fc
4 changed files with 4 additions and 4 deletions
  1. 1
    1
      README.md
  2. 1
    1
      gogs.go
  3. 1
    1
      models/login.go
  4. 1
    1
      templates/.VERSION

+ 1
- 1
README.md View File



![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true) ![](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 | | Web | UI | Preview |
|:-------------:|:-------:|:-------:| |:-------------:|:-------:|:-------:|

+ 1
- 1
gogs.go View File

"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )


const APP_VER = "0.9.46.0717"
const APP_VER = "0.9.47.0721"


func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())

+ 1
- 1
models/login.go View File

username = loginName username = loginName
} }
// Validate username make sure it satisfies requirement. // 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) return nil, fmt.Errorf("Invalid pattern for attribute 'username' [%s]: must be valid alpha or numeric or dash(-_) or dot characters", username)
} }



+ 1
- 1
templates/.VERSION View File

0.9.46.0717
0.9.47.0721

Loading…
Cancel
Save