user reset password key can be empty string (#6871)

This commit is contained in:
Maciej Zieniuk
2026-01-27 21:38:09 +01:00
committed by GitHub
parent 03fcdc2852
commit f578dab94f
2 changed files with 39 additions and 2 deletions

View File

@@ -34,8 +34,7 @@ public class OrganizationUserRotationValidator : IRotationValidator<IEnumerable<
}
// Exclude any account recovery that do not have a key.
existing = existing.Where(o => o.ResetPasswordKey != null).ToList();
existing = existing.Where(o => !string.IsNullOrEmpty(o.ResetPasswordKey)).ToList();
foreach (var ou in existing)
{