Browse Source

Fix panic when attempt login with non-exist user

Unknwon 8 năm trước cách đây
mục cha
commit
7c1fbed057
5 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 1 1
      README.md
  2. 1 1
      gogs.go
  3. 1 1
      models/login_source.go
  4. 0 0
      modules/bindata/bindata.go
  5. 1 1
      templates/.VERSION

+ 1 - 1
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.97 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
+##### Current tip version: 0.9.98 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 
 | Web | UI  | Preview  |
 |:-------------:|:-------:|:-------:|

+ 1 - 1
gogs.go

@@ -17,7 +17,7 @@ import (
 	"github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.9.97.0901"
+const APP_VER = "0.9.98.0901"
 
 func init() {
 	runtime.GOMAXPROCS(runtime.NumCPU())

+ 1 - 1
models/login_source.go

@@ -540,7 +540,7 @@ func UserSignIn(username, passowrd string) (*User, error) {
 		}
 	}
 
-	sources := make([]*LoginSource, 3)
+	sources := make([]*LoginSource, 0, 3)
 	if err = x.UseBool().Find(&sources, &LoginSource{IsActived: true}); err != nil {
 		return nil, err
 	}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
modules/bindata/bindata.go


+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.9.97.0901
+0.9.98.0901

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác