Skip to content

Commit 23f9f4e

Browse files
committed
Map Field in RessourceOwner
1 parent 16fae11 commit 23f9f4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Provider/AhoiResourceOwner.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AhoiResourceOwner implements ResourceOwnerInterface
1818
*/
1919
public function __construct(array $response = array())
2020
{
21-
$this->response = $response;
21+
$this->response = $response["message"];
2222
}
2323

2424
/**
@@ -38,7 +38,7 @@ public function getEmail()
3838
*/
3939
public function getFirstname()
4040
{
41-
return $this->response['first_name'] ?: null;
41+
return $this->response['firstname'] ?: null;
4242
}
4343

4444
/**
@@ -58,7 +58,7 @@ public function getImageurl()
5858
*/
5959
public function getLastname()
6060
{
61-
return $this->response['last_name'] ?: null;
61+
return $this->response['lastname'] ?: null;
6262
}
6363

6464
/**
@@ -68,7 +68,7 @@ public function getLastname()
6868
*/
6969
public function getId()
7070
{
71-
return $this->response['uuid'] ?: null;
71+
return $this->response['id'] ?: null;
7272
}
7373

7474
/**

0 commit comments

Comments
 (0)