Esempio n. 1
0
        public void AuthUser(string username, string password)
        {
            User userToAuth = new User();

            userToAuth.UserName = username.ToLower();
            userToAuth.Password = password;

            var result = new UserBL().AutenticateLogin(userToAuth);

            if (result != null)
            {
                var session = new SLIIT.ITP.SLLITPage();

                session.CurrentUserID = result.RnUserID;
            }
            else
            {
                throw new Exception(SLIITCommonResource.ERROR_Incorrect_Credentials.ToString());
            }
        }
Esempio n. 2
0
        public void AuthUser(string username, string password)
        {
            User userToAuth = new User();

            userToAuth.UserName = username.ToLower();
            userToAuth.Password = password;

            var result = new UserBL().AutenticateLogin(userToAuth);

            if (result != null)
            {
                var session = new SLIIT.ITP.SLLITPage();

                session.CurrentUserID = result.RnUserID;

            }
            else
            {
                throw new Exception(SLIITCommonResource.ERROR_Incorrect_Credentials.ToString());
            }
        }