Skip to content

Commit 866ba89

Browse files
authored
Call the correct interface method
`getData()` does not exist on the authentication `IdentityInterface`. The correct method is `getOriginalData()`
1 parent 4bf3365 commit 866ba89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/FootprintAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function _setCurrentUser($user = null): ?EntityInterface
106106
if ($user === null && !empty($this->Authentication)) {
107107
$identity = $this->Authentication->getIdentity();
108108
if ($identity) {
109-
$user = $identity->getData();
109+
$user = $identity->getOriginalData();
110110
}
111111
}
112112

0 commit comments

Comments
 (0)