Merge pull request from GHSA-6rrr-78xp-5jp8

This commit is contained in:
Livio Spring
2023-01-10 15:58:10 +01:00
committed by GitHub
parent 0a85dd822f
commit 2482bb8700
4 changed files with 106 additions and 6 deletions

View File

@@ -261,7 +261,7 @@ func (c *Commands) addUserToken(ctx context.Context, userWriteModel *UserWriteMo
if err != nil {
return nil, nil, err
}
if !isUserStateExists(userWriteModel.UserState) {
if userWriteModel.UserState != domain.UserStateActive {
return nil, nil, errors.ThrowNotFound(nil, "COMMAND-1d6Gg", "Errors.User.NotFound")
}