Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpmw
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alfiro Pratama
simpmw
Commits
6487b28c
Commit
6487b28c
authored
Apr 28, 2024
by
Muhammad Iskandar Java
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix login sso
parent
9a367234
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
app/Http/Controllers/Authentication/LoginController.php
+10
-10
No files found.
app/Http/Controllers/Authentication/LoginController.php
View file @
6487b28c
...
...
@@ -45,19 +45,19 @@ class LoginController extends Controller
public
function
sso
(
$email
,
$session_id
)
{
//
$auth = $this->ssoRepo->sso($session_id);
$auth
=
$this
->
ssoRepo
->
sso
(
$session_id
);
try
{
$clientbiodata
=
new
Client
();
$apiRequestbiodata
=
$clientbiodata
->
request
(
'GET'
,
'https://sso.unesa.ac.id/userid/'
.
'chumairo.18008@mhs.unesa.ac.id'
);
$aksessso
=
json_decode
(
$apiRequestbiodata
->
getBody
()
->
getContents
());
}
catch
(
\Exception
$apiRequestbiodata
)
{
$gagal_login
=
'Data Tidak Ditemukan'
;
//
try {
//
$clientbiodata = new Client();
//
$apiRequestbiodata = $clientbiodata->request('GET', 'https://sso.unesa.ac.id/userid/'.'chumairo.18008@mhs.unesa.ac.id');
//
$aksessso = json_decode($apiRequestbiodata->getBody()->getContents());
//
} catch (\Exception $apiRequestbiodata) {
//
$gagal_login = 'Data Tidak Ditemukan';
return
$error
;
}
//
return $error;
//
}
$auth
=
$aksessso
;
//
$auth = $aksessso;
if
(
!
is_array
(
$auth
))
{
return
redirect
(
'https://sso.unesa.ac.id/user'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment