mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
OpenId AccountController: Fixing that null user shouldn't trigger LoggedIn Events in LogonCallback
This commit is contained in:
@@ -123,7 +123,10 @@ namespace Orchard.OpenId.Controllers
|
||||
|
||||
public ActionResult LogonCallback() {
|
||||
var user = _authenticationService.GetAuthenticatedUser();
|
||||
|
||||
if (user != null) {
|
||||
_userEventHandler.LoggedIn(user);
|
||||
}
|
||||
|
||||
if (TempData.ContainsKey("ReturnUrl"))
|
||||
return this.RedirectLocal((String)TempData["ReturnUrl"]);
|
||||
|
||||
Reference in New Issue
Block a user