Commit 005cac1b authored by raphael.peim's avatar raphael.peim

Update token

parent c2820a9c
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
"data" => array( "data" => array(
"firstname" => $user->firstname, "firstname" => $user->firstname,
"lastname" => $user->lastname, "lastname" => $user->lastname,
"lastname" => $user->login, "login" => $user->login,
"email" => $user->email "email" => $user->email
) )
); );
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
public function processRequest() { public function processRequest() {
try { try {
$jwt_token = $this->request->getJwtToken(); $jwt_token = $this->request->getJwtToken();
// echo "jwt = $jwt_token";
$decodedJWT = JWT::decode($jwt_token, JWT_BACKEND_KEY, array('HS256')); $decodedJWT = JWT::decode($jwt_token, JWT_BACKEND_KEY, array('HS256'));
$jsonResult = json_encode(array( $jsonResult = json_encode(array(
"message" => "Access granted.", "message" => "Access granted.",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment