public string AuthorizeUser(LoginModel model)
 {
     model.Password = UtilityController.Encrypt(model.Password, "dbmanagment");
     model          = model.Authorise();
     if (model.UserName != null)
     {
         Session["User"] = model;
         return("1");
     }
     return("0");
 }
Пример #2
0
 public string AuthorizeUser(LoginModel model)
 {
     model.Password = UtilityController.Encrypt(model.Password, "CCMClinic");
     model          = model.Authorise();
     if (model.UserName != null)
     {
         Session["User"] = model;
         //return RedirectToAction("Index", "Home");
         return("1");
     }
     return("0");
     //return View(model);
 }