浏览代码

Working workaround

master
父节点
当前提交
b84745e2e2
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. +5
    -6
      routes/web.php

+ 5
- 6
routes/web.php 查看文件

@@ -43,15 +43,14 @@ Route::get('/verify-email', function() {
}
})->middleware('auth')->name('verification.notice');

Route::get('/verify/{id}/{hash}', function (EmailVerificationRequest $request) {
$user = User::find($id);

if ($user->email_verified_at) {
Route::get('/verify/{id}/{hash}', function (EmailVerificationRequest $request, $id) {
if (Auth::user()->email_verified_at) {
abort(404);
}
}

Auth::login($user);
Auth::loginUsingId($id);
$request->fulfill();

return redirect('/panel');
})->middleware(['signed'])->name('verification.verify');



正在加载...
取消
保存