forked from mahdahar/crm-summit
Update Agar User yg sudah login tidak bisa akses /auth/login
This commit is contained in:
parent
f43a31bc63
commit
e1669b805e
@ -74,6 +74,11 @@ class Auth extends BaseController {
|
|||||||
// mikael.zakaria.37@gmail.com
|
// mikael.zakaria.37@gmail.com
|
||||||
public function login() {
|
public function login() {
|
||||||
|
|
||||||
|
// Cek Apakah sudah login atau belum
|
||||||
|
if (session()->has('userid')) {
|
||||||
|
return redirect()->to('/');
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->request->getMethod() === 'POST') {
|
if ($this->request->getMethod() === 'POST') {
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user