public ActionResult Login(AccountModels.LoginDto model, string returnUrl)
        {
            if (ModelState.IsValid)
            {
                var auth = new AuthorizeManager();

                if (auth.AuthorizeEmployee(model.UserId, model.Password))
                {
                    var u = auth.GetSession();

                    // Sign in
                    FormsAuthentication.SetAuthCookie(u.UserId, !string.IsNullOrEmpty(model.RememberMe));

                    // 食堂管理员和系统管理员跳后台管理界面
                    if (u.Role >= UserRoleEnum.Canteen || returnUrl.ToLower().Contains("securenode"))
                    {
                        if (Url.IsLocalUrl(returnUrl))
                        {
                            return(Redirect(returnUrl));
                        }

                        return(RedirectToAction("Index", "Home"));
                    }

                    return(RedirectToAction("Index", "Reservation"));
                }
                else
                {
                    ModelState.AddModelError("Warn", "用户名或密码不正确");
                }
            }

            ViewBag.ReturnUrl = returnUrl;

            return(View(model));
        }