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 = ""; } }
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 = ""; } }