mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix more aspects of the password reset process
This commit is contained in:
parent
8db17b3fb8
commit
513d896f51
|
@ -65,7 +65,7 @@ class EditUserHandler
|
|||
}
|
||||
}
|
||||
|
||||
event(new UserWillBeSaved($actor, $actor, $data));
|
||||
event(new UserWillBeSaved($user, $actor, $data));
|
||||
|
||||
$user->save();
|
||||
$this->dispatchEventsFor($user);
|
||||
|
|
|
@ -12,6 +12,11 @@ class PasswordToken extends Model
|
|||
*/
|
||||
protected $table = 'password_tokens';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public $dates = ['created_at'];
|
||||
|
||||
/**
|
||||
* Use a custom primary key for this model.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user