示例#1
0
 private void DataPortal_Fetch(CredentialsCriteria criteria)
 {
     if (criteria.Username == "SergeyB" && criteria.Password == "1234")
     {
         this.Roles              = new MobileList <string>(criteria.Roles.Split(';'));
         this.IsAuthenticated    = true;
         this.Name               = criteria.Username;
         this.AuthenticationType = "Custom";
     }
     else
     {
         this.Roles              = new MobileList <string>();
         this.IsAuthenticated    = false;
         this.Name               = string.Empty;
         this.AuthenticationType = "";
     }
 }
示例#2
0
 private void DataPortal_Fetch(CredentialsCriteria criteria)
 {
     if (criteria.Username == "SergeyB" && criteria.Password == "1234")
       {
     this.Roles = new MobileList<string>(criteria.Roles.Split(';'));
     this.IsAuthenticated = true;
     this.Name = criteria.Username;
     this.AuthenticationType = "Custom";
       }
       else
       {
     this.Roles = new MobileList<string>();
     this.IsAuthenticated = false;
     this.Name = string.Empty;
     this.AuthenticationType = "";
       }
 }