mirror of
https://github.com/flarum/core.git
synced 2025-10-28 14:06:30 +01:00
Always invalidate all user email tokens
Reported by B. Dhiyaneshwaran of Geek Freak.
This commit is contained in:
@@ -53,7 +53,8 @@ class ConfirmEmailHandler
|
||||
$user->save();
|
||||
$this->dispatchEventsFor($user);
|
||||
|
||||
$token->delete();
|
||||
// Delete *all* tokens for the user, in case other ones were sent first
|
||||
$user->emailTokens()->delete();
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user