From 5b2a6bb97866ebcb2891b2cbb6055b7597a4893e Mon Sep 17 00:00:00 2001
From: MrKevJoy <60096576+MrKevJoy@users.noreply.github.com>
Date: Mon, 30 Oct 2023 14:45:15 +0000
Subject: [PATCH] Adding warning to user page when user has prohibition (#753)
---
.../Pages/Admin/User.cshtml | 24 ++++--
.../Pages/Admin/User.cshtml.cs | 3 +
.../Services/DqtApi/DqtApiClient.cs | 14 +++-
.../Services/DqtApi/TeacherInfo.cs | 14 ++++
.../Account.cs | 6 +-
.../Elevate.cs | 6 +-
.../TrnTokenSignInJourney.cs | 15 ++--
.../Account/DateOfBirth/DateOfBirthTests.cs | 5 +-
.../EndpointTests/Account/IndexTests.cs | 9 +-
.../OfficialDateOfBirth/ConfirmTests.cs | 3 +-
.../OfficialDateOfBirth/DetailsTests.cs | 4 +-
.../OfficialDateOfBirth/EvidenceTests.cs | 4 +-
.../OfficialDateOfBirthTests.cs | 4 +-
.../Account/OfficialName/ConfirmTests.cs | 3 +-
.../Account/OfficialName/DetailsTests.cs | 4 +-
.../Account/OfficialName/EvidenceTests.cs | 4 +-
.../Account/OfficialName/OfficialNameTests.cs | 4 +-
.../Admin/AssignTrn/ConfirmTests.cs | 3 +-
.../Admin/AssignTrn/IndexTests.cs | 3 +-
.../EndpointTests/Admin/UserTests.cs | 84 ++++++++++++++++++-
.../EndpointTests/Oidc/AuthorizeTests.cs | 3 +-
.../SignIn/EmailConfirmationTests.cs | 4 +-
.../Jobs/SyncNamesWithDqtJobTests.cs | 6 +-
.../UserImport/UserImportProcessorTests.cs | 6 +-
.../UserClaimHelperTests.cs | 18 ++--
25 files changed, 208 insertions(+), 45 deletions(-)
diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/User.cshtml b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/User.cshtml
index 5852a1306..7db2feff5 100644
--- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/User.cshtml
+++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Admin/User.cshtml
@@ -6,13 +6,25 @@
}
@section BeforeContent {
-