Fix : minor fix on the UserLogincontroller
This commit is contained in:
parent
7a8839c6ec
commit
e3f8dec51a
@ -28,24 +28,6 @@ class UserloginController extends Controller
|
||||
$check_user_url = 'auth/auth_user.php';
|
||||
$data = ['user' => $request->username, 'pass' => $request->password, 'api_token' => env('LUPMISAPIKEY')];
|
||||
$check_user = ApiCalls::CurlPost(json_encode($data), $check_user_url);
|
||||
/*
|
||||
"success" : true, "data" : {
|
||||
"ua_id":28,"user_id":"71c1f2bd-e85b-4c2a-b559-536731ea1a92",
|
||||
"username":"kwesilupmis",
|
||||
"title":"Mr","full_name":"Kwesi banson jnr",
|
||||
"ua_position":"luspa-it-head",
|
||||
"email":"kwesibanson@yahoo.com",
|
||||
"phone":"0204040805","gender":null,
|
||||
"is_disabled":"true",
|
||||
"is_logged_in":0,"is_password_changed":"false","password_hint":"none",
|
||||
"created_by_id":null,"created_date":"2026-03-10T07:09:38.815762",
|
||||
"updated_by_id":"71c1f2bd-e85b-4c2a-b559-536731ea1a92",
|
||||
"updated_date":"2026-05-06T10:26:09.191289",
|
||||
"allowed_apps":"drawing-tools, permit-tools, admin-gui",
|
||||
"region_id":10,
|
||||
"district_id":122
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
if($check_user == false){
|
||||
|
||||
@ -75,7 +75,7 @@
|
||||
@include('common.notifications')
|
||||
<div class="row g-4">
|
||||
<div class="col-md-3">
|
||||
<a href="https:portal.lupmis4luspa.org" class="card-link <?php //echo (stripos($_SESSION['user']['allowed_apps'], 'permit') !== false) ? "" : 'disabled-link'; ?>">
|
||||
<a href="https:portal.lupmis4luspa.org" class="card-link <?php ?>">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="card-icon">
|
||||
@ -94,7 +94,7 @@
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- <a href="https://drawingtools.lupmis4luspa.org/indexGIS.php" class="card-link "> -->
|
||||
<a href="https://pwa.lupmis4luspa.org/index.html" class="card-link ">
|
||||
<a href="https://pwa.lupmis4luspa.org/index.php" class="card-link ">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body text-center p-4">
|
||||
<div class="card-icon">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user