send less verification emails (#138)

This commit is contained in:
Steven Qiu 2020-02-27 17:45:07 +08:00 committed by GitHub
parent 4dde7fc13c
commit 33c6f00da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,17 +20,6 @@ use View;
class UserController extends Controller
{
public function __construct()
{
$this->middleware(function ($request, $next) {
if (!Auth::user()->verified) {
$this->sendVerificationEmail();
}
return $next($request);
})->only(['index', 'profile']);
}
public function user()
{
$user = auth()