Skip to content
Snippets Groups Projects
Commit d3214a46 authored by Janega Zoltán's avatar Janega Zoltán
Browse files

token session fix

parent afa559ea
Branches
Tags
No related merge requests found
...@@ -23,7 +23,9 @@ class AuthSCHClient { ...@@ -23,7 +23,9 @@ class AuthSCHClient {
// get tokens from auth.sch.bme.hu // get tokens from auth.sch.bme.hu
$this->authenticate(); $this->authenticate();
//save tokendata to session
//save tokendata to session (if we did authentication -> we have refresh token)
if(isset($this->tokens->refresh_token))
$_SESSION['tokens'] = serialize($this->tokens); $_SESSION['tokens'] = serialize($this->tokens);
} else { } else {
// load tokendata from session // load tokendata from session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment