Skip to content

Commit

Permalink
Fix load event
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Hintum committed Jul 13, 2022
1 parent 02320e7 commit 32fb87d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Craft;
use craft\base\Plugin as CraftPlugin;
use craft\elements\User as UserElement;
use craft\services\Plugins;
use craft\web\Application as WebApplication;

use yii\base\Event;
use yii\base\ModelEvent;
Expand Down Expand Up @@ -46,7 +46,7 @@ public function init()
]
);

Event::on(Plugins::class, Plugins::EVENT_AFTER_LOAD_PLUGINS, function () {
Event::on(WebApplication::class, WebApplication::EVENT_INIT, function () {
// Only try to trigger jobs from the admin.
if (Craft::$app->getRequest()->getIsCpRequest()) {
$this->history->queuePasswordResets();
Expand Down

0 comments on commit 32fb87d

Please sign in to comment.