Fixed bug
This commit is contained in:
@@ -215,6 +215,8 @@ class UserController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function login(Request $request) {
|
public function login(Request $request) {
|
||||||
|
Auth::logout();
|
||||||
|
|
||||||
$data = $request->only("email", "password");
|
$data = $request->only("email", "password");
|
||||||
|
|
||||||
if(Auth::attempt($data)) {
|
if(Auth::attempt($data)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user