update
parent
24897833f4
commit
cf98abd293
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue