Exemplo n.º 1
0
        public ActionResult CreateSystemUser()
        {
            if (ConfigurationManager.AppSettings["SysAdmin"] == "True")
            {
                string UserName = "******";
                if (!WebSecurity.UserExists(UserName))
                {
                    AuthenticationBL bl = new AuthenticationBL();

                    WebSecurity.CreateUserAndAccount(UserName, "elt1234_forever", new { elt_account_number = 80002000 });
                    bl.CopyUser(80002000, bl.GetELTUser("80002000", 1000).login_name, "system");
                }
            }
            return(new EmptyResult());
        }