mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Finish create new label
This commit is contained in:
@@ -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