Exemplo n.º 1
0
        public override void Validate(string userName, string password)
        {
            if (userName == null || password == null)
            {
                throw new ArgumentNullException();
            }

            if (!CustomerCore.Authenicate(userName, password))
            {
                throw new FaultException("Unknown username or incorrect password");
            }
        }
Exemplo n.º 2
0
 public override string[] GetRolesForUser(string username)
 {
     return(CustomerCore.GetUserRoles(username));
 }
Exemplo n.º 3
0
 public bool IsUserAdmin()
 {
     return(CustomerCore.IsUserAdmin(CustomPrincipal.Current.Identity.Name));
 }