X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a274406038e13cf678e14d65dfa70d04ead67206..refs/pull/3918/head:/app/Console/Commands/ResetMfa.php diff --git a/app/Console/Commands/ResetMfa.php b/app/Console/Commands/ResetMfa.php index 031bec04b..9074a4a46 100644 --- a/app/Console/Commands/ResetMfa.php +++ b/app/Console/Commands/ResetMfa.php @@ -49,9 +49,10 @@ class ResetMfa extends Command return 1; } - /** @var User $user */ $field = $id ? 'id' : 'email'; $value = $id ?: $email; + + /** @var User $user */ $user = User::query() ->where($field, '=', $value) ->first();