From 0b1fce56f8ca36a362d95fbdcbfdc811be4d988d Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 3 Nov 2023 14:31:48 +0000 Subject: [PATCH] Fix initializing TrnLookup from an existing session (#756) --- .../src/TeacherIdentity.AuthServer/AuthenticationState.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/AuthenticationState.cs b/dotnet-authserver/src/TeacherIdentity.AuthServer/AuthenticationState.cs index 4b3310010..375dd09f6 100644 --- a/dotnet-authserver/src/TeacherIdentity.AuthServer/AuthenticationState.cs +++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/AuthenticationState.cs @@ -629,7 +629,7 @@ public void OnSignedInUserProvided(User? user) user.EffectiveVerificationLevel != TrnVerificationLevel.Medium : null; HaveCompletedTrnLookup = user?.CompletedTrnLookup is not null; - TrnLookup = user?.CompletedTrnLookup is not null ? TrnLookupState.Complete : TrnLookupState.None; + TrnLookup = user?.CompletedTrnLookup is not null || user?.Trn is not null ? TrnLookupState.Complete : TrnLookupState.None; UserType = user?.UserType; StaffRoles = user?.StaffRoles; TrnLookupStatus = user?.TrnLookupStatus;