Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning: Undefined array key "[status|responsible]" in AuthenticationService.php #24

Open
Moongazer opened this issue Nov 17, 2022 · 0 comments

Comments

@Moongazer
Copy link

Describe the bug
On a freshly installed project setup using https://github.com/Leuchtfeuer/ungeheuer, the backend-login fails with some "Undefined array key" warnings. This happens only if username/password for a BE user is used instead of Auth0-login:

#1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "status" in /var/www/html/private/typo3conf/ext/auth0/Classes/Service/AuthenticationService.php line 349

To Reproduce
Login to BE using a username/password

How to fix

if ($this->login['status'] !== 'login' || $this->login['responsible'] === false || !isset($this->userInfo[$this->userIdentifier])) {

if (($this->login['status'] ?? '') !== 'login' || ($this->login['responsible'] ?? false) === false || !isset($this->userInfo[$this->userIdentifier])) {

if ($this->login['responsible'] === false) {

if (($this->login['responsible'] ?? false) === false) {

Desktop (please complete the following information):

  • OS: MacbookPro M2 v12.6.1
  • Browser: Firefox
  • PHP v8.0
  • TYPO3 v11.5.19
  • leuchtfeuer/auth0 v3.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant