1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

Move event to Flarum\User namespace

This commit is contained in:
Franz Liedke
2017-06-26 23:30:51 +02:00
parent 3ece3ca976
commit b4c7f8ca89
2 changed files with 4 additions and 4 deletions

View File

@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
namespace Flarum\Event;
namespace Flarum\User\Event;
use Flarum\User\User;
class CheckUserPassword
class CheckingPassword
{
/**
* @var User

View File

@@ -14,7 +14,6 @@ namespace Flarum\User;
use DomainException;
use Flarum\Database\AbstractModel;
use Flarum\Database\ScopeVisibilityTrait;
use Flarum\Event\CheckUserPassword;
use Flarum\Event\ConfigureUserPreferences;
use Flarum\Event\PrepareUserGroups;
use Flarum\Foundation\Application;
@@ -26,6 +25,7 @@ use Flarum\Post\Event\Deleted as PostDeleted;
use Flarum\User\Event\Activated;
use Flarum\User\Event\AvatarChanged;
use Flarum\User\Event\BioChanged;
use Flarum\User\Event\CheckingPassword;
use Flarum\User\Event\Deleted;
use Flarum\User\Event\EmailChanged;
use Flarum\User\Event\EmailChangeRequested;
@@ -350,7 +350,7 @@ class User extends AbstractModel
*/
public function checkPassword($password)
{
$valid = static::$dispatcher->until(new CheckUserPassword($this, $password));
$valid = static::$dispatcher->until(new CheckingPassword($this, $password));
if ($valid !== null) {
return $valid;