grosv / laravel-passwordless-login

A simple, safe magic login link generator for Laravel
841 stars 60 forks source link

Laravel-Vapor Production Issue #85

Open JacquesJEngelbrecht opened 2 years ago

JacquesJEngelbrecht commented 2 years ago

I have a laravel app that uses MAgic-Link Passwordless login. On local environment I can click the link and login successfully with the following url: href="http://localhost:8000/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651125222&user_type=app-models-user&signature=a4ceb0c897aeee5f061e9da436857bbcb42568bc69a94450521cc63e2ccbbc3d"

But it doesn't work on Production and this is the link that is created: href="https://precious-rain-wbicx1zdorzr.vapor-farm-b1.com/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651220763&user_type=app-models-user&signature=2d440e40a9d50f6d246c4f12fbb84979caf28b211f9995b06ed6b5667aa3edf2"

There is a definite difference of the 2 links

Can anyone please help ?

Thank you in advance

navnitamcodr commented 2 years ago

I have a laravel app that uses MAgic-Link Passwordless login. On local environment I can click the link and login successfully with the following url: href="http://localhost:8000/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651125222&user_type=app-models-user&signature=a4ceb0c897aeee5f061e9da436857bbcb42568bc69a94450521cc63e2ccbbc3d"

But it doesn't work on Production and this is the link that is created: href="https://precious-rain-wbicx1zdorzr.vapor-farm-b1.com/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651220763&user_type=app-models-user&signature=2d440e40a9d50f6d246c4f12fbb84979caf28b211f9995b06ed6b5667aa3edf2"

There is a definite difference of the 2 links

Can anyone please help ?

Thank you in advance

i also face same issue.

ChrisRAra commented 2 years ago

I was able to fix the issue by adding target="_blank" in my mail template on the verify link / button

navnitamcodr commented 2 years ago

I have a laravel app that uses MAgic-Link Passwordless login. On local environment I can click the link and login successfully with the following url: href="http://localhost:8000/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651125222&user_type=app-models-user&signature=a4ceb0c897aeee5f061e9da436857bbcb42568bc69a94450521cc63e2ccbbc3d"

But it doesn't work on Production and this is the link that is created: href="https://precious-rain-wbicx1zdorzr.vapor-farm-b1.com/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651220763&user_type=app-models-user&signature=2d440e40a9d50f6d246c4f12fbb84979caf28b211f9995b06ed6b5667aa3edf2"

There is a definite difference of the 2 links

Can anyone please help ?

Thank you in advance

I have a laravel app that uses MAgic-Link Passwordless login. On local environment I can click the link and login successfully with the following url: href="http://localhost:8000/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651125222&user_type=app-models-user&signature=a4ceb0c897aeee5f061e9da436857bbcb42568bc69a94450521cc63e2ccbbc3d" But it doesn't work on Production and this is the link that is created: href="https://precious-rain-wbicx1zdorzr.vapor-farm-b1.com/magic-login/493eb4f7-18ce-4481-a26e-a3fa8c887220?expires=1651220763&user_type=app-models-user&signature=2d440e40a9d50f6d246c4f12fbb84979caf28b211f9995b06ed6b5667aa3edf2" There is a definite difference of the 2 links Can anyone please help ? Thank you in advance

i also face same issue.

it is resolved now. it was http to https conversion issue.. resulted in signature mismatch