mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Fix more aspects of the password reset process
This commit is contained in:
parent
ff0c117486
commit
1ccc9bee5f
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user