Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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();
        }