mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
22 lines
522 B
PHP
22 lines
522 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Auth;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
|
|
|
class LoginController extends Controller
|
|
{
|
|
public function login()
|
|
{
|
|
if (! Auth::attempt(request(['email', 'password']))) {
|
|
return redirect('/login')->withErrors([
|
|
'email' => ['These credentials do not match our records.'],
|
|
]);
|
|
}
|
|
|
|
return redirect('/backstage/concerts');
|
|
}
|
|
}
|