Fixes #1579 Exception when browsing to /login when you are already logged in
Added PageState.User check
This commit is contained in:
parent
6059a944bf
commit
ddafd21706
@ -97,10 +97,13 @@
|
|||||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
{
|
{
|
||||||
if (firstRender)
|
if (firstRender)
|
||||||
|
{
|
||||||
|
if(PageState.User == null)
|
||||||
{
|
{
|
||||||
await username.FocusAsync();
|
await username.FocusAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private async Task Login()
|
private async Task Login()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user