Fix problem when logging out staying on the login page

This commit is contained in:
2014-05-27 18:52:25 -04:00
parent d3589e231c
commit c9c5582816
+4
View File
@@ -14,6 +14,10 @@ namespace MileageTraker.Web.Controllers
[AllowAnonymous]
public ActionResult Login(string returnUrl, string username)
{
if (User.Identity.IsAuthenticated)
{
return RedirectToAction("Index", "CreateLog");
}
ViewBag.ReturnUrl = returnUrl;
return View(new LoginViewModel{Username = username});
}