How to Use Queue in Laravel 5.4 For Email Verification
Cloudways
33431

After these steps the user can still login without verifying.

In order to resolve this (in Laravel 5.3 anyways) you need to edit Illuminate\Foundation\Auth\AuthenticatesUsers

Find this function:

protected function credentials(Request $request)
 {
 return $request->only($this->username(), ‘password’); 
 }

and change it to:

protected function credentials(Request $request)
 {
 return array_merge($request->only($this->username(), ‘password’), [‘verified’ => 1]);
 }

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.