简体   繁体   English

Laravel 7 验证 email 地址无效签名

[英]Laravel 7 verify email adress invalid signature

After clicking verify email address button in the email, I got 403 invalid signature.点击email中的验证email地址按钮后,我得到403无效签名。 I'm using shared hosting我正在使用共享主机

I have read these我读过这些

  1. Laravel 5.7 email verification throws 403 Laravel 5.7 email 验证抛出 403
  2. https://laracasts.com/discuss/channels/laravel/403-invalid-signature-every-time-i-try-to-verify-email-in-laravel-57 https://laracasts.com/discuss/channels/laravel/403-invalid-signature-every-time-i-try-to-verify-email-in-laravel-57
  3. https://laracasts.com/discuss/channels/laravel/email-verification-403-invalid-signature https://laracasts.com/discuss/channels/laravel/email-verification-403-invalid-signature

but still can't solve my problem但仍然无法解决我的问题

Same happen to me, but only in production while using FORCE_HTTPS to set all my routes to https ,同样发生在我身上,但仅在生产中使用FORCE_HTTPS将我的所有路由设置为https

if I disable Force_https it works, but my routes go back to https .如果我禁用Force_https它可以工作,但我的路线 go 回到https

Maybe the verification link is already expired.可能验证链接已经过期。

Referring to UrlGenerator.php,参考 UrlGenerator.php,

public function hasValidSignature(Request $request, $absolute = true)
{
    return $this->hasCorrectSignature($request, $absolute)
        && $this->signatureHasNotExpired($request);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM