diff --git a/services/auth/source/db/authenticate.go b/services/auth/source/db/authenticate.go index b1d8eae6ae..e06b9aaa50 100644 --- a/services/auth/source/db/authenticate.go +++ b/services/auth/source/db/authenticate.go @@ -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,