Changeset 5920 for branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers
- Timestamp:
- 04/01/11 01:52:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AccountController.cs
r4950 r5920 9 9 using System.Web.Security; 10 10 using HLWebPluginHost.Models; 11 using HLWebPluginHost.OKBQueryService; 12 using HLWebPluginHost.Helpers; 11 13 12 14 namespace HLWebPluginHost.Controllers { … … 36 38 public ActionResult LogOn(LogOnModel model, string returnUrl) { 37 39 if (ModelState.IsValid) { 38 if (MembershipService.ValidateUser(model.UserName, model.Password)) { 39 Session["pwd"] = model.Password; 40 QueryServiceClient client = Query.GetClientFactory(model.UserName, model.Password); 41 if (client != null) { 42 Session["Username"] = model.UserName; 43 Session["Password"] = model.Password; 40 44 FormsService.SignIn(model.UserName, model.RememberMe); 41 45 if (!String.IsNullOrEmpty(returnUrl)) { … … 59 63 public ActionResult LogOff() { 60 64 FormsService.SignOut(); 65 Session.Remove("Username"); 66 Session.Remove("Password"); 61 67 62 68 return RedirectToAction("Index", "Home");
Note: See TracChangeset
for help on using the changeset viewer.