Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cesargb patch 1 #10

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
included query params
  • Loading branch information
thesubhendu committed Jan 10, 2020
commit d5c7aff8bff3032e87fcf5ef81c7f81836daca01
7 changes: 7 additions & 0 deletions src/MagicLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ public function auth($token)
app()->make('auth')->guard(config('magiclink.auth_guard'))->loginUsingId($magicLink->user_id);

if ($magicLink->redirect_url !== null && $magicLink->redirect_url != '') {

if(!empty(request()->all())) {

return $magicLink->redirect_url. "?". http_build_query(request()->all());

}

return $magicLink->redirect_url;
}

Expand Down