Skip to content

Commit d3d67cd

Browse files
authored
Merge pull request #3282 from TechnologyEnhancedLearning/Develop/Fixes/TD-3712-UpdatingLastAccessedForUnverifiedUsersLogin
TD-3712 Updating Last Accessed For Unverified Users Login
2 parents cfd8bad + 69dfe66 commit d3d67cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DigitalLearningSolutions.Web/Controllers/LoginController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public async Task<IActionResult> Index(LoginViewModel model, string timeZone = "
8383
var loginResult = loginService.AttemptLogin(model.Username!.Trim(), model.Password!);
8484

8585
if (loginResult.LoginAttemptResult == LoginAttemptResult.LogIntoSingleCentre ||
86-
loginResult.LoginAttemptResult == LoginAttemptResult.ChooseACentre)
86+
loginResult.LoginAttemptResult == LoginAttemptResult.ChooseACentre ||
87+
loginResult.LoginAttemptResult == LoginAttemptResult.UnverifiedEmail)
8788
{
8889
loginService.UpdateLastAccessedForUsersTable(loginResult.UserEntity.UserAccount.Id);
8990
}

DigitalLearningSolutions.Web/Views/SuperAdmin/Users/_SearchableUserCard.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
</div>
8989
<div class="nhsuk-summary-list__row details-list-with-button__row">
9090
<dt class="nhsuk-summary-list__key">
91-
Last Accessed
91+
Last accessed date
9292
</dt>
9393
<partial name="_SummaryFieldValue" model="@Model.LastAccessed" />
9494
</div>

0 commit comments

Comments
 (0)