[v8.3.x] GetUserInfo: return an error if no user was found (#211)

* return an error if no user was found

* update condition

(cherry picked from commit ec87405543fe8032a0c2769d3ec97536b7a749ef)
This commit is contained in:
Kevin Minehart
2022-01-17 21:07:35 +02:00
committed by dsotirakis
parent 82a2acf00b
commit 8628e8310d
@@ -38,6 +38,10 @@ func (s *Implementation) GetExternalUserInfoByLogin(ctx context.Context, query *
}
func (s *Implementation) GetAuthInfo(query *models.GetAuthInfoQuery) error {
if query.UserId == 0 && query.AuthId == "" {
return models.ErrUserNotFound
}
userAuth := &models.UserAuth{
UserId: query.UserId,
AuthModule: query.AuthModule,