mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Fix more aspects of the password reset process
This commit is contained in:
@@ -65,7 +65,7 @@ class EditUserHandler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
event(new UserWillBeSaved($actor, $actor, $data));
|
event(new UserWillBeSaved($user, $actor, $data));
|
||||||
|
|
||||||
$user->save();
|
$user->save();
|
||||||
$this->dispatchEventsFor($user);
|
$this->dispatchEventsFor($user);
|
||||||
|
@@ -12,6 +12,11 @@ class PasswordToken extends Model
|
|||||||
*/
|
*/
|
||||||
protected $table = 'password_tokens';
|
protected $table = 'password_tokens';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public $dates = ['created_at'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use a custom primary key for this model.
|
* Use a custom primary key for this model.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user