Skip to content

Commit 7c1fbed

Browse files
committed
Fix panic when attempt login with non-exist user
1 parent bc902b8 commit 7c1fbed

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
33

44
![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
55

6-
##### Current tip version: 0.9.97 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
6+
##### Current tip version: 0.9.98 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
77

88
| Web | UI | Preview |
99
|:-------------:|:-------:|:-------:|

gogs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/gogits/gogs/modules/setting"
1818
)
1919

20-
const APP_VER = "0.9.97.0901"
20+
const APP_VER = "0.9.98.0901"
2121

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

models/login_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ func UserSignIn(username, passowrd string) (*User, error) {
540540
}
541541
}
542542

543-
sources := make([]*LoginSource, 3)
543+
sources := make([]*LoginSource, 0, 3)
544544
if err = x.UseBool().Find(&sources, &LoginSource{IsActived: true}); err != nil {
545545
return nil, err
546546
}

modules/bindata/bindata.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/.VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.97.0901
1+
0.9.98.0901

0 commit comments

Comments
 (0)