Corrected resolution of username

- Using IRepository was also looking at removed content items

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-09-01 18:18:53 -07:00
parent 98d11e81f0
commit 257cb4682a
6 changed files with 40 additions and 17 deletions

View File

@@ -183,15 +183,23 @@ namespace Orchard.Users.Controllers {
return View(new BaseViewModel());
}
public ActionResult ChallengeEmailSuccess() {
return View(new BaseViewModel());
}
public ActionResult ChallengeEmailFail() {
return View(new BaseViewModel());
}
public ActionResult ChallengeEmail(string token) {
var user = _membershipService.ValidateChallengeToken(token);
if ( user != null ) {
_authenticationService.SignIn(user, false /* createPersistentCookie */);
return View("ChallengeEmailSuccess");
return RedirectToAction("ChallengeEmailSuccess");
}
return View("ChallengeEmailFail");
return RedirectToAction("ChallengeEmailFail");
}
protected override void OnActionExecuting(ActionExecutingContext filterContext) {