PCRB webassembly
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user