Laravel Auth Register, Prevent automatic login -


i developing app manage users. need access auth/register logged in users. default auth redirecting home page.

it seems after registration, auth automatically doing ::attempt.

how can prevent it?

assuming use registersusers (or authenticatesandregistersusers) trait in controller can override postregister method , not log user in. can see original method here

without logging be:

public function postregister(request $request) {     $validator = $this->validator($request->all());     if ($validator->fails()) {         $this->throwvalidationexception(             $request, $validator         );     }     return redirect($this->redirectpath()); } 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -