mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-13 16:33:26 +09:00
Finish create new label
This commit is contained in:
+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