[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:
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,
|
||||
|
||||
Reference in New Issue
Block a user