mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
Move event to Flarum\User namespace
This commit is contained in:
parent
e67da1ec19
commit
7e04823d82
|
@ -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
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user