mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
prevent logged in user from logging in
This commit is contained in:
parent
1cc5a79c8c
commit
bc56237435
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,8 @@ The address used to send this message is not a no-reply address. In fact, my nam
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public ActionResult Login(string returnUrl)
|
public ActionResult Login(string returnUrl)
|
||||||
{
|
{
|
||||||
|
if (Request.IsAuthenticated)
|
||||||
|
return Redirect(returnUrl);
|
||||||
ViewBag.ReturnUrl = returnUrl;
|
ViewBag.ReturnUrl = returnUrl;
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
@ -174,6 +176,8 @@ The address used to send this message is not a no-reply address. In fact, my nam
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public ActionResult Register()
|
public ActionResult Register()
|
||||||
{
|
{
|
||||||
|
if (Request.IsAuthenticated)
|
||||||
|
return RedirectToAction("Index", "Ho,e");
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue