mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-14 14:49:46 +00:00
Finish create new label
This commit is contained in:
1 parent
a4c3ab48a5
commit
93f8f92523
8 files changed
+106
-23
No files matched your search
+2
-3
@@ -185,9 +185,8 @@ func LoginUser(uname, passwd string) (*User, error) {
|
||||
} else {
|
||||
if !has {
|
||||
var sources []LoginSource
|
||||
cond := &LoginSource{IsActived: true, AllowAutoRegister: true}
|
||||
err = orm.UseBool().Find(&sources, cond)
|
||||
if err != nil {
|
||||
if err = orm.UseBool().Find(&sources,
|
||||
&LoginSource{IsActived: true, AllowAutoRegister: true}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user