PCRB webassembly

This commit is contained in:
Chase Tucker
2024-05-13 14:33:27 -07:00
parent 9b7e3ef897
commit 89790f4fc1
50 changed files with 5466 additions and 677 deletions

View File

@ -46,6 +46,16 @@ public class MesaFabApprovalAuthStateProvider : AuthenticationStateProvider, IDi
CurrentUser = await _authService.GetCurrentUser();
NotifyAuthenticationStateChanged(Task.FromResult(new AuthenticationState(principal)));
if (CurrentUser is null) {
string loginId = _userService.GetLoginIdFromClaimsPrincipal(principal);
User? user = await _userService.GetUserByLoginId(loginId);
await _authService.SetCurrentUser(user);
NotifyAuthenticationStateChanged(Task.FromResult(new AuthenticationState(principal)));
}
}
public async Task LoginAsync(string loginId, string password) {