public void CmdLoginDemoUser() { if (LocalData.IsReady) { if (!LocalData.IsAuthenticated) { LocalFunctions.Authorize("DemoUser", "123456789"); } else { LocalFunctions.AddMessage("Please logout first, to log into demo user", true, false); } } else { LocalFunctions.AddMessage("Not ready yet, please try again", true, false); } }
protected void CmdAuthorize() { IsButtonDisabled = true; IsRecoveryIconVisible = false; StateHasChanged(); ValidateFull(); if (LocalFunctions.HasError()) { LocalFunctions.DisplayErrors(); } else { LocalFunctions.Authorize(UserName.Trim(), UserPassword.Trim()); } IsButtonDisabled = false; IsRecoveryIconVisible = true; StateHasChanged(); }