mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 18:13:10 +02:00
Fix panic when attempt login with non-exist user
This commit is contained in:
1 parent
bc902b8f74
commit
7c1fbed057
5 files changed
+6
-6
No files matched your search
@@ -3,7 +3,7 @@ Gogs - Go Git Service [
|

|
||||||
|
|
||||||
##### 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 |
|
| Web | UI | Preview |
|
||||||
|:-------------:|:-------:|:-------:|
|
|:-------------:|:-------:|:-------:|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.9.97.0901"
|
const APP_VER = "0.9.98.0901"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|||||||
@@ -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 {
|
if err = x.UseBool().Find(&sources, &LoginSource{IsActived: true}); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ func (fi bindataFileInfo) Sys() interface{} {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x7b\x5b\x6f\x23\xd9\x75\xee\x7b\xfd\x8a\x3d\x9a\x33\xa7\xd5\x07\x45\x52\x97\x96\x5a\x23\x5b\x3e\x43\x91\x45\x89\x6e\xde\x5c\x45\x75\x4f\x4f\x43\x28\x95\x58\x9b\x64\x8d\x8a\x55\x9c\xda\x45\xa9\x35\x38\x38\xb0\x91\x87\x5c\x80\x20\x0f\x09\x12\x04\x08\x82\xe4\x21\x31\xe0\xdc\x6c\xe4\xc5\x4e\x9c\xbc\x4c\xf2\xde\xf3\x1f\x9c\x71\xfc\xe4\xbf\x90\x6f\xad\xbd\x8b\x2c\xaa\xd5\xca\x4c\x90\xc0\x1e\xb1\x2e\x7b\xaf\xbd\xd7\xfd\x5b\x6b\x57\xbf\x2f\x7a\xce\x73\xc7\x15\xfc\xa7\xdb\x6f\xb6\x5b\x2f\xc5\xf0\xb4\xed\x89\x56\xbb\xe3\x58\xef\x8b\x41\xc7\xa9\x7b\x8e\xe8\xd6\x9f\x39\xa2\x71\x5a\xef\x9d\x38\x9e\xe8\xf7\x44\xa3\xef\xba\x8e\x37\xe8\xf7\x9a\xed\xde\x89\x68\x9c\x79\xc3\x7e\x17\x0f\x7b\xad\xf6\x89\x9e\x69\x7d\x4b\xd4\xe7\x73\x91\x04\x33\x29\xf2\x69\x90\x0b\x35\x4d\x6f\x94\x48\x13\x21\xaf\x65\x76\x2b\xe6\xc1\x04\x2f\xa2\x3c\x96\x56\x7d\x30\xf0\x7b\xf5\xae\x23\x8e\xc4\x49\x3a\x51\x87\xf8\x2b\x4e\xa2\x5c\x78\x32\xbb\x8e\x46\x12\x94\x1a\xd3\x20\xc1\x70\x3c\x8b\xc6\xe2\x36\x5d\x88\x6c\x91\x88\x38\x1d\x05\x71\x7c\x6b\xb9\x67\x3d\xff\xcc\xc3\xee\x8f\xc4\x24\xca\x31\xda\x89\xf2\xa9\xcc\xc4\x46\x28\xaf\x37\x6c\xb1\x31\xcf\xd2\x70\x43\xa4\x78\x90\x4b\x95\xe3\x49\x28\xc7\xc1\x22\x06\x2d\xa5\xc7\x30\x05\xb0\x4e\x1b\xc0\xbd\x65\xbd\xca\xe4\x3c\x55\x51\x9e\x66\xb7\xe7\x96\xdb\xef\x0f\xc5\x91\xe5\x35\xdc\xf6\x60\xe8\x0f\x5f\x0e\x68\xd8\x65\xa0\xa6\x58\xa9\x69\x28\xd5\x7b\x5e\x5b\x8c\xa6\x41\xa6\x64\x6e\xd1\x8d\x0f\x51\xb9\x9e\x43\x13\xbf\x25\x5a\x69\x36\x92\x86\xed\x44\xde\x88\x15\x75\x91\xa7\xe2\x52\x8a\x79\x16\x5d\x07\xb9\xb4\x5a\x7d\xb7\xe1\xf8\x03\xb7\xfd\xbc\x3e\xa4\x55\xc6\x41\xac\x88\xfd\x93\x38\xbd\x0c\x62\x31\x0b\x5e\x47\xb3\xc5\x4c\x8c\x32\x19\xe4\x11\x24\x19\x47\x33\x88\x24\x1d\x97\x29\xce\xc1\xf9\x42\xc9\xcc\x16\x95\x6d\x31\x93\x41\xa2\x44\x92\xea\x91\x56\xb7\xfe\xb1\xdf\x70\x9d\xfa\xb0\xdd\xef\xf9\x9d\x76\xb7\x8d\xfd\x61\x18\x56\xe8\x46\x59\x06\x09\xa9\xdb\x64\x24\x3e\x5b\xc8\x85\x14\xb1\x4c\x26\xf9\xd4\x16\x51\x42\xcb\x29\x49\x92\x9f\xad\x46\x45\xc9\x44\xa8\x3c\xc8\x72\x25\x48\x37\xb8\xb5\xba\x6d\xd7\xed\xbb\xfe\xf7\xce\x9c\x33\xc7\xef\x38\xbd\x93\xe1\x29\xc8\x6f\x6f\x6d\x6d\x61\x81\x41\x90\x8f\xa6\x82\x14\xf0\x00\xfd\xf9\x22\x8e\xc1\x0b\x06\x60\xd8\x7c\x39\xe3\x9e\xb5\x06\x67\x9d\x8e\xef\x3a\x58\xcb\x1b\xbe\x6b\xc5\x4c\x8e\x65\x96\xc9\x50\x74\x60\x44\x89\x92\x8a\xa4\x3d\x8f\x03\xe8\x02\xe6\x08\x13\xc1\xfd\x9c\xa4\x47\x97\x9d\x48\x91\xe9\xf4\xc8\x5c\x67\x0b\x2c\x3f\xe3\xe5\xc7\x51\x2c\xb5\x0d\x47\x89\x18\xa5\xc9\xb8\x16\x6b\x62\x64\x4f\x23\x8c\x4b\x67\xb5\xf2\x63\x6b\xe0\x3a\x2d\x07\xae\xd1\x84\x7c\x1b\x4e\xcf\x83\xb7\x1c\xc1\x11\x82\x11\xaf\xa1\xa7\xee\x54\xb7\x6c\x92\xbd\xb9\x5f\xb3\xb7\xaa\x0c\xe9\xf7\x1c\x7b\xa1\x2d\xd1\xf6\x78\x0f\xf2\x75\x8e\xb1\x50\xba\x5a\x7a\xd3\x22\x0e\x21\x8f\x6b\x88\x32\x4a\xa4\xb8\xc9\x82\xb9\xa2\x5d\x12\x37\x8d\x34\x94\x46\xa5\x9a\x1e\xc8\x79\x72\x1e\x64\xb0\xb2\x32\xa9\x1b\x78\x8a\x08\xc0\xd8\x6c\x16\x54\xc5\x30\x5d\x91\xe2\x55\x31\xa0\x96\xae\xc6\xdb\xe2\x53\x92\xcc\x7c\x91\x17\x73\xac\x4e\xbb\xe7\xf8\x2f\xdc\xfa\xc0\x77\x3e\x1e\x82\x5d\x18\x16\x31\x5c\xcd\x5f\xe7\x76\x75\x16\xe2\xbf\x20\xbb\x0a\xd3\x9b\x84\xee\xf4\xcf\x55\x68\x63\x37\xcf\x83\x38\x0a\x35\x6b\x33\x6c\xd6\x70\xc5\xec\x04\xf0\x07\x79\x1d\xc1\x51\xea\x83\xb6\x08\x94\x4a\x47\x11\xf6\x1d\xea\xdd\x82\xbd\x99\x2d\xd4\x02\xca\x09\x94\x08\xe6\x51\xed\x7a\xbb\x56\xac\x52\x66\xf3\x3a\x88\x61\x47\xe2\xf2\x56\x6f\x55\x55\xc9\x22\x98\x6c\x1e\x5c\x92\xa0\x48\x32\xbc\xb8\xb8\x49\x93\x47\x3a\x40\x91\x15\x92\x00\xd7\x65\x2e\xc2\x54\x2a\x1a\xc2\x46\x41\x3a\x7e\xde\x76\x5e\xd4\x8f\x3b\x8e\x4f\xb1\x8e\x63\x07\xb1\xbd\xdc\xc6\x9a\x46\x17\xf3\x38\x0d\x42\xd2\xe8\x8b\xa9\xe4\xc8\x54\x72\x57\x5e\x48\x8f\x00\x37\x19\x16\x4d\x82\xcb\x58\x86\xd5\x22\xb6\xb0\xd5\x5e\xe4\xd9\x42\x5e\x58\x4e\x8f\xd6\x6c\x62\x25\xba\xd7\x5e\x05\x1b\x85\x96\x0d\x85\x3b\xb3\xc2\x20\x0f\x6a\xf9\x6c\x5e\x33\xaf\x2f\xc4\x26\xee\xc4\x44\xe2\x7d\x28\x63\x49\x42\x05\x77\x13\x04\x5d\xec\x89\x5d\xec\xb1\x35\x74\xba\x03\x7f\x50\x67\x57\xba\x4b\x00\x4b\xf6\x13\xb6\xfd\x59\x8a\xbd\x22\xfc\xa6\x37\xa0\x91\xdf\xce\xa5\xb2\x85\xac\x4e\xaa\x22\x9a\x21\xb0\xd7\x3e\x9d\xcb\xc9\xff\xd3\x97\xf3\x04\x4f\x7b\x69\x3e\x25\x37\xd6\x01\x29\x48\x0c\xe3\x34\xd1\xaa\x77\x3a\xfd\x17\x70\x18\x0a\xad\x1e\x07\xcc\x6e\xf0\x5a\xa8\xe8\x73\x49\xd6\x2f\x83\xc2\x0d\xa1\xb2\xee\xf1\x3a\x87\xbb\xdd\x63\x4b\x6b\x00\x91\xcd\x6b\x7f\x42\x41\x73\xd7\x10\x48\x16\xb3\x4b\xc8\xda\x38\x90\xd2\x81\x91\xd9\x58\xa7\xb1\xc7\x61\x91\xa8\x90\x0a\xf7\xa0\xbb\x45\x44\xca\xea\x2d\xe7\x2f\xd5\x15\x15\x76\x4a\x8a\x22\x73\x01\xef\xd8\x55\x9a\x90\xad\x80\x34\x9e\x52\x5a\xb3\x9c\x8f\x07\x9d\xbe\x8b\x48\x5e\x3f\x41\x76\xf4\x7b\x67\x5d\x50\xde\xd9\x5a\x23\x1a\x29\xb5\x78\x37\x39\x26\xd3\xf6\xbc\xb3\x3b\x44\xb6\xd7\x89\x2c\x33\x02\x2c\x3c\x02\x3b\xeb\x44\x82\x51\x1e\x5d\x47\x39\x64\x2d\x65\x68\xb5\x1c\xc8\x98\x33\x40\xbf\x8b\xe8\x63\x08\xee\x69\x5f\x5c\xb0\xac\x2f\xc8\xb9\x64\x65\x94\x82\x95\x0b\xe8\x2a\x0f\xe0\x2b\x13\x9b\xf2\x49\x48\x8e\x54\x4f\xc2\x2c\x85\xdb\x7e\Line truncated
|
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x7b\x5b\x6f\x23\xd9\x75\xee\x7b\xfd\x8a\x3d\x9a\x33\xa7\xbb\x0f\x8a\xa4\x2e\x2d\xb5\xa6\x6d\xf9\x0c\x45\x16\x29\xba\x79\x73\x15\xd5\x3d\x3d\x0d\xa1\x54\x62\x6d\x92\x35\x2a\x56\x71\x6a\x17\xa5\xd6\xe0\xe0\xc0\x46\x1e\x72\x01\x82\x3c\x24\x48\x10\x20\x08\x92\x87\xc4\x80\x73\xb3\x91\x17\x3b\x71\xf2\x32\xc9\x7b\xcf\x7f\x70\xc6\xf1\x93\xff\x42\xbe\xb5\xf6\x2e\xb2\xa8\x56\x2b\x33\x41\x02\x7b\xc4\xba\xec\xbd\xf6\x5e\xf7\x6f\xad\x5d\xfd\xbe\xe8\x3b\xcf\x1d\x57\xf0\x9f\xde\xa0\xd9\x69\xbd\x14\xa3\x93\x8e\x27\x5a\x9d\xae\x63\xbd\x2f\x86\x5d\xa7\xee\x39\xa2\x57\x7f\xe6\x88\xc6\x49\xbd\xdf\x76\x3c\x31\xe8\x8b\xc6\xc0\x75\x1d\x6f\x38\xe8\x37\x3b\xfd\xb6\x68\x9c\x7a\xa3\x41\x0f\x0f\xfb\xad\x4e\x5b\xcf\xb4\xbe\x25\xea\x8b\x85\x48\x82\xb9\x14\xf9\x2c\xc8\x85\x9a\xa5\xd7\x4a\xa4\x89\x90\x57\x32\xbb\x11\x8b\x60\x8a\x17\x51\x1e\x4b\xab\x3e\x1c\xfa\xfd\x7a\xcf\x11\x47\xa2\x9d\x4e\xd5\x53\xfc\x15\xed\x28\x17\x9e\xcc\xae\xa2\xb1\x04\xa5\xc6\x2c\x48\x30\x1c\xcf\xa2\x89\xb8\x49\x97\x22\x5b\x26\x22\x4e\xc7\x41\x1c\xdf\x58\xee\x69\xdf\x3f\xf5\xb0\xfb\x23\x31\x8d\x72\x8c\x76\xa2\x7c\x26\x33\xb1\x15\xca\xab\x2d\x5b\x6c\x2d\xb2\x34\xdc\x12\x29\x1e\xe4\x52\xe5\x78\x12\xca\x49\xb0\x8c\x41\x4b\xe9\x31\x4c\x01\xac\xd3\x06\x70\x6f\x59\xaf\x32\xb9\x48\x55\x94\xa7\xd9\xcd\x99\xe5\x0e\x06\x23\x71\x64\x79\x0d\xb7\x33\x1c\xf9\xa3\x97\x43\x1a\x76\x11\xa8\x19\x56\x6a\x1a\x4a\xf5\xbe\xd7\x11\xe3\x59\x90\x29\x99\x5b\x74\xe3\x43\x54\xae\xe7\xd0\xc4\x6f\x89\x56\x9a\x8d\xa5\x61\x3b\x91\xd7\x62\x4d\x5d\xe4\xa9\xb8\x90\x62\x91\x45\x57\x41\x2e\xad\xd6\xc0\x6d\x38\xfe\xd0\xed\x3c\xaf\x8f\x68\x95\x49\x10\x2b\x62\xbf\x1d\xa7\x17\x41\x2c\xe6\xc1\xeb\x68\xbe\x9c\x8b\x71\x26\x83\x3c\x82\x24\xe3\x68\x0e\x91\xa4\x93\x32\xc5\x05\x38\x5f\x2a\x99\xd9\xa2\xb2\x23\xe6\x32\x48\x94\x48\x52\x3d\xd2\xea\xd5\x3f\xf6\x1b\xae\x53\x1f\x75\x06\x7d\xbf\xdb\xe9\x75\xb0\x3f\x0c\xc3\x0a\xbd\x28\xcb\x20\x21\x75\x93\x8c\xc5\x67\x4b\xb9\x94\x22\x96\xc9\x34\x9f\xd9\x22\x4a\x68\x39\x25\x49\xf2\xf3\xf5\xa8\x28\x99\x0a\x95\x07\x59\xae\x04\xe9\x06\xb7\x56\xaf\xe3\xba\x03\xd7\xff\xde\xa9\x73\xea\xf8\x5d\xa7\xdf\x1e\x9d\x80\xfc\xce\xf6\xf6\x36\x16\x18\x06\xf9\x78\x26\x48\x01\xf7\xd0\x5f\x2c\xe3\x18\xbc\x60\x00\x86\x2d\x56\x33\xee\x58\x6b\x78\xda\xed\xfa\xae\x83\xb5\xbc\xd1\xbb\x56\xcc\xe4\x44\x66\x99\x0c\x45\x17\x46\x94\x28\xa9\x48\xda\x8b\x38\x80\x2e\x60\x8e\x30\x11\xdc\x2f\x48\x7a\x74\xd9\x8d\x14\x99\x4e\x9f\xcc\x75\xbe\xc4\xf2\x73\x5e\x7e\x12\xc5\x52\xdb\x70\x94\x88\x71\x9a\x4c\x6a\xb1\x26\x46\xf6\x34\xc6\xb8\x74\x5e\x2b\x3f\xb6\x86\xae\xd3\x72\xe0\x1a\x4d\xc8\xb7\xe1\xf4\x3d\x78\xcb\x11\x1c\x21\x18\xf3\x1a\x7a\xea\x6e\x75\xdb\x26\xd9\x9b\xfb\x0d\x7b\xab\xca\x90\x7e\xcf\xb0\x17\xda\x12\x6d\x8f\xf7\x20\x5f\xe7\x18\x0b\xa5\xab\x95\x37\x2d\xe3\x10\xf2\xb8\x82\x28\xa3\x44\x8a\xeb\x2c\x58\x28\xda\x25\x71\xd3\x48\x43\x69\x54\xaa\xe9\x81\x9c\x27\x17\x41\x06\x2b\x2b\x93\xba\x86\xa7\x88\x00\x8c\xcd\xe7\x41\x55\x8c\xd2\x35\x29\x5e\x15\x03\x6a\xe9\x7a\xbc\x2d\x3e\x25\xc9\x2c\x96\x79\x31\xc7\xea\x76\xfa\x8e\xff\xc2\xad\x0f\x7d\xe7\xe3\x11\xd8\x85\x61\x11\xc3\xd5\xfc\x75\x6e\x57\xe7\x21\xfe\x0b\xb2\xcb\x30\xbd\x4e\xe8\x4e\xff\x5c\x86\x36\x76\xf3\x3c\x88\xa3\x50\xb3\x36\xc7\x66\x0d\x57\xcc\x4e\x00\x7f\x90\x57\x11\x1c\xa5\x3e\xec\x88\x40\xa9\x74\x1c\x61\xdf\xa1\xde\x2d\xd8\x9b\xdb\x42\x2d\xa1\x9c\x40\x89\x60\x11\xd5\xae\x76\x6a\xc5\x2a\x65\x36\xaf\x82\x18\x76\x24\x2e\x6e\xf4\x56\x55\x95\x2c\x82\xc9\xe6\xc1\x05\x09\x8a\x24\xc3\x8b\x8b\xeb\x34\x79\xa0\x03\x14\x59\x21\x09\x70\x53\xe6\x22\x4c\xa5\xa2\x21\x6c\x14\xa4\xe3\xe7\x1d\xe7\x45\xfd\xb8\xeb\xf8\x14\xeb\x38\x76\x10\xdb\xab\x6d\x6c\x68\x74\xb9\x88\xd3\x20\x24\x8d\xbe\x98\x49\x8e\x4c\x25\x77\xe5\x85\xf4\x08\x70\x93\x61\xd1\x24\xb8\x88\x65\x58\x2d\x62\x0b\x5b\xed\x79\x9e\x2d\xe5\xb9\xe5\xf4\x69\xcd\x26\x56\xa2\x7b\xed\x55\xb0\x51\x68\xd9\x50\xb8\x35\x2b\x0c\xf2\xa0\x96\xcf\x17\x35\xf3\xfa\x5c\x3c\xc4\x9d\x98\x4a\xbc\x0f\x65\x2c\x49\xa8\xe0\x6e\x8a\xa0\x8b\x3d\xb1\x8b\x3d\xb2\x46\x4e\x6f\xe8\x0f\xeb\xec\x4a\xb7\x09\x60\xc9\x41\xc2\xb6\x3f\x4f\xb1\x57\x84\xdf\xf4\x1a\x34\xf2\x9b\x85\x54\xb6\x90\xd5\x69\x55\x44\x73\x04\xf6\xda\xa7\x0b\x39\xfd\x7f\xfa\x72\x91\xe0\x69\x3f\xcd\x67\xe4\xc6\x3a\x20\x05\x89\x61\x9c\x26\x5a\xf5\x6e\x77\xf0\x02\x0e\x43\xa1\xd5\xe3\x80\xd9\x0b\x5e\x0b\x15\x7d\x2e\xc9\xfa\x65\x50\xb8\x21\x54\xd6\x3b\xde\xe4\x70\xaf\x77\x6c\x69\x0d\x20\xb2\x79\x9d\x4f\x28\x68\xee\x19\x02\xc9\x72\x7e\x01\x59\x1b\x07\x52\x3a\x30\x32\x1b\x9b\x34\xf6\x39\x2c\x12\x15\x52\xe1\x3e\x74\xb7\x8c\x48\x59\xfd\xd5\xfc\x95\xba\xa2\xc2\x4e\x49\x51\x64\x2e\xe0\x1d\xbb\x4a\x13\xb2\x15\x90\xc6\x53\x4a\x6b\x96\xf3\xf1\xb0\x3b\x70\x11\xc9\xeb\x6d\x64\x47\xbf\x7f\xda\x03\xe5\xdd\xed\x0d\xa2\x91\x52\xcb\x77\x93\x63\x32\x1d\xcf\x3b\xbd\x45\x64\x67\x93\xc8\x2a\x23\xc0\xc2\x23\xb0\xb3\x49\x24\x18\xe7\xd1\x55\x94\x43\xd6\x52\x86\x56\xcb\x81\x8c\x39\x03\x0c\x7a\x88\x3e\x86\xe0\xbe\xf6\xc5\x25\xcb\xfa\x9c\x9c\x4b\x56\xc6\x29\x58\x39\x87\xae\xf2\x00\xbe\x32\xb5\x29\x9f\x84\xe4\x48\xf5\x24\xcc\x52\xb8\xed\x77\Line truncated
|
||||||
|
|
||||||
func confAppIniBytes() ([]byte, error) {
|
func confAppIniBytes() ([]byte, error) {
|
||||||
return bindataRead(
|
return bindataRead(
|
||||||
@@ -302,7 +302,7 @@ func confAppIni() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindataFileInfo{name: "conf/app.ini", size: 13794, mode: os.FileMode(420), modTime: time.Unix(1472700015, 0)}
|
info := bindataFileInfo{name: "conf/app.ini", size: 13880, mode: os.FileMode(420), modTime: time.Unix(1472706329, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
0.9.97.0901
|
0.9.98.0901
|
||||||
Reference in new issue
Block a user