Exemplo n.º 1
0
        public bool Login(string userName, string password)
        {
            var accountName = string.Empty;
            var domain      = Context.Domain;

            if (domain != null)
            {
                accountName = domain.GetFullName(userName);
            }

            var result = AuthenticationManager.Login(accountName, password);

            if (result)
            {
                accountTrackerService.TrackLogin(accountName);
            }

            return(result);
        }