emersonunes

Results 4 comments of emersonunes

Hello, I also have this error. How can I fix it?

I've solved this by adding this function to loginController: ``` protected function authenticated(Request $request, $user) { if (Auth::guard('student')->user()->active === '0') { Auth::guard('student')->logout(); return redirect('/')->withErrors('A conta está desativada.'); } } ```

Btw, how do I prevent the login after the registration in the student role?

Same bug over here. I have lines that show as uncovered and they don't even exist