问题描述
尝试验证用户电子邮件,我正在使用 Laravel 的默认验证系统。
它在本地成功运行,但在现场,它返回“无效签名”错误。
我正在使用 AWS
APP_URL 与我自己的域 (https://test.blabla.com) 相同
而且不知道我应该多说些什么。
我的 AppServiceProvider:
public function boot(\Illuminate\Contracts\View\Factory $factory)
{
$factory->composer('*','App\Http\View\Composers\AuthenticatedComposer');
if (env('APP_ENV') === 'production') {
\URL::forceScheme('https');
}
我的路线:
Route::get('/email/verify',function () {
return view('auth_.verify');
})->middleware('auth')->name('verification.notice');
Route::get('/email/verify/{id}/{hash}',function (EmailVerificationRequest $request) {
$request->fulfill();
return redirect('/users/emailverified');
})->middleware(['auth','signed'])->name('verification.verify');
Route::post('/email/verification-notification',function (Request $request) {
$request->user()->sendEmailVerificationNotification();
return back()->with('message','Veritification url send!');
})->middleware(['auth','throttle:6,1'])->name('verification.resend');
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)