Skip to content

Commit ddb931e

Browse files
TD-4502 Issue not listing the delegates on 'Send welcome message' screen for whose Password is set and unclaimed
1 parent 9de2f37 commit ddb931e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Web/Services/UserService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public void UpdateFailedLoginCount(UserAccount userAccount)
275275
public IEnumerable<DelegateUserCard> GetDelegateUserCardsForWelcomeEmail(int centreId)
276276
{
277277
return userDataService.GetDelegateUserCardsByCentreId(centreId).Where(
278-
user => user.Approved && !user.SelfReg && string.IsNullOrEmpty(user.Password) &&
278+
user => user.Approved && !user.SelfReg && (string.IsNullOrEmpty(user.Password) || !string.IsNullOrEmpty(user.Password)) &&
279279
!string.IsNullOrEmpty(user.EmailAddress)
280280
&& !Guid.TryParse(user.EmailAddress, out _)
281281
&& user.RegistrationConfirmationHash != null

0 commit comments

Comments
 (0)