update
parent
24897833f4
commit
cf98abd293
|
@ -217,7 +217,7 @@ class UserController extends Controller
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// if ($user->username && $user->password) {
|
// if ($user->username && $user->password) {
|
||||||
Auth::logout();
|
// Auth::logout();
|
||||||
if (Auth::loginUsingId($keyId)) {
|
if (Auth::loginUsingId($keyId)) {
|
||||||
$session = [
|
$session = [
|
||||||
'username' => $user->username,
|
'username' => $user->username,
|
||||||
|
|
|
@ -95,7 +95,7 @@ $("#grid-data").on("click", ".forcelogin", function() {
|
||||||
if(response.status == true){
|
if(response.status == true){
|
||||||
toastr.success("Berhasil Login", 'Berhasil!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'});
|
toastr.success("Berhasil Login", 'Berhasil!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'});
|
||||||
console.log(response);
|
console.log(response);
|
||||||
// window.location.href = '{{url("/dashboard")}}';
|
window.location.href = '{{url("/dashboard")}}';
|
||||||
history.pushState(null, null, location.href);
|
history.pushState(null, null, location.href);
|
||||||
window.onpopstate = function () {
|
window.onpopstate = function () {
|
||||||
history.go(1);
|
history.go(1);
|
||||||
|
|
Loading…
Reference in New Issue