mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Fix incorrect login after confirming token
This commit is contained in:
@@ -19,7 +19,7 @@ class ConfirmEmailCommandHandler
|
|||||||
|
|
||||||
public function handle($command)
|
public function handle($command)
|
||||||
{
|
{
|
||||||
$token = EmailToken::find($command->token)->first();
|
$token = EmailToken::find($command->token);
|
||||||
|
|
||||||
if (! $token) {
|
if (! $token) {
|
||||||
throw new InvalidConfirmationTokenException;
|
throw new InvalidConfirmationTokenException;
|
||||||
|
Reference in New Issue
Block a user