mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-28 11:14:54 -04:00
fix: correct Authenticate method
This commit is contained in:
parent
610f6856a2
commit
bcba4b8fb4
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ func Authenticate(ctx context.Context, user *user_model.User, login, password st
|
|||
}
|
||||
|
||||
// attempting to login as a non-user account
|
||||
if user.Type != user_model.UserTypeIndividual {
|
||||
if !user.IsUser() {
|
||||
return nil, user_model.ErrUserProhibitLogin{
|
||||
UID: user.ID,
|
||||
Name: user.Name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue