use wcf\data\user\UserProfile;
use wcf\form\AbstractCaptchaForm;
use wcf\system\application\ApplicationHandler;
+use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
use wcf\system\exception\UserInputException;
use wcf\system\request\LinkHandler;
use wcf\system\request\RequestHandler;
use wcf\system\request\RouteHandler;
use wcf\system\user\authentication\EmailUserAuthentication;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\authentication\UserAuthenticationFactory;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
$needsMultifactor = WCF::getSession()->changeUserAfterMultifactorAuthentication($this->user);
if (!$needsMultifactor) {
WCF::getSession()->registerReauthentication();
+
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($this->user)
+ );
}
$this->saved();
use GuzzleHttp\Psr7\Request;
use wcf\data\user\User;
use wcf\form\RegisterForm;
+use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
use wcf\system\request\LinkHandler;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\authentication\oauth\User as OauthUser;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
WCF::getSession()->changeUser($user);
WCF::getSession()->update();
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($user)
+ );
+
HeaderUtil::redirect(LinkHandler::getInstance()->getLink());
exit;
use Psr\Http\Client\ClientExceptionInterface;
use wcf\data\user\User;
use wcf\form\RegisterForm;
+use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
use wcf\system\request\LinkHandler;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\authentication\oauth\User as OauthUser;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
WCF::getSession()->changeUser($user);
WCF::getSession()->update();
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($user)
+ );
+
HeaderUtil::redirect(LinkHandler::getInstance()->getLink());
exit;
use GuzzleHttp\Psr7\Request;
use wcf\data\user\User;
use wcf\form\RegisterForm;
+use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
use wcf\system\request\LinkHandler;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\authentication\oauth\User as OauthUser;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
WCF::getSession()->changeUser($user);
WCF::getSession()->update();
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($user)
+ );
+
HeaderUtil::redirect(LinkHandler::getInstance()->getLink());
exit;
use ParagonIE\ConstantTime\Hex;
use Psr\Http\Client\ClientExceptionInterface;
use wcf\data\user\User;
+use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
use wcf\system\exception\PermissionDeniedException;
use wcf\system\io\HttpFactory;
use wcf\system\request\LinkHandler;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\authentication\oauth\exception\StateValidationException;
use wcf\system\user\authentication\oauth\User as OauthUser;
use wcf\system\WCF;
WCF::getSession()->changeUser($user);
WCF::getSession()->update();
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($user)
+ );
+
HeaderUtil::redirect(LinkHandler::getInstance()->getLink());
exit;
namespace wcf\form;
+use wcf\system\event\EventHandler;
use wcf\system\request\LinkHandler;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\WCF;
/**
// change user
$needsMultifactor = WCF::getSession()->changeUserAfterMultifactorAuthentication($this->user);
+ if (!$needsMultifactor) {
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($this->user)
+ );
+ }
+
$this->saved();
// redirect to url
use wcf\data\user\User;
use wcf\system\application\ApplicationHandler;
use wcf\system\cache\runtime\UserProfileRuntimeCache;
+use wcf\system\event\EventHandler;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\NamedUserException;
use wcf\system\form\builder\TemplateFormNode;
use wcf\system\request\LinkHandler;
+use wcf\system\user\authentication\event\UserLoggedIn;
use wcf\system\user\multifactor\IMultifactorMethod;
use wcf\system\user\multifactor\Setup;
use wcf\system\WCF;
WCF::getDB()->commitTransaction();
WCF::getSession()->applyPendingUserChange($this->user);
+ EventHandler::getInstance()->fire(
+ new UserLoggedIn($this->user)
+ );
$this->saved();
}