diff --git a/app/Http/Controllers/Management/UserController.php b/app/Http/Controllers/Management/UserController.php index 0f897b9..cdecf10 100644 --- a/app/Http/Controllers/Management/UserController.php +++ b/app/Http/Controllers/Management/UserController.php @@ -217,7 +217,7 @@ class UserController extends Controller } else { // if ($user->username && $user->password) { - Auth::logout(); + // Auth::logout(); if (Auth::loginUsingId($keyId)) { $session = [ 'username' => $user->username, diff --git a/resources/views/modules/management/user/index.blade.php b/resources/views/modules/management/user/index.blade.php index af53107..d813474 100644 --- a/resources/views/modules/management/user/index.blade.php +++ b/resources/views/modules/management/user/index.blade.php @@ -95,7 +95,7 @@ $("#grid-data").on("click", ".forcelogin", function() { if(response.status == true){ toastr.success("Berhasil Login", 'Berhasil!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'}); console.log(response); - // window.location.href = '{{url("/dashboard")}}'; + window.location.href = '{{url("/dashboard")}}'; history.pushState(null, null, location.href); window.onpopstate = function () { history.go(1);