Skip to content

Commit e8417c9

Browse files
TD-4502 Removing password check from the where condition
1 parent ddb931e commit e8417c9

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) || !string.IsNullOrEmpty(user.Password)) &&
278+
user => user.Approved && !user.SelfReg &&
279279
!string.IsNullOrEmpty(user.EmailAddress)
280280
&& !Guid.TryParse(user.EmailAddress, out _)
281281
&& user.RegistrationConfirmationHash != null

0 commit comments

Comments
 (0)