send less verification emails (#138)
This commit is contained in:
parent
4dde7fc13c
commit
33c6f00da6
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user