Exemple #1
0
        private void JumpLogin()
        {
            int userid = ConfigWrapper.JumpLoginID;

            if (userid > 0)
            {
                User currentUser = new User(userid);
                SiteUtility.BuildAuthenticationCookie(currentUser, currentUser.GetRoles(), currentUser.GetPermissions());
            }
            else
            {
                throw new ApplicationException("Jump login ID not provided");
            }
        }