Object of class Concrete\Core\User\User could not be converted to string
Permalink Browser Info Environment
Since upgrading to 9.2.1 from 9.2.0, when a user with 2FA logs in, after the initial password is entered, an error occurs:
Object of class Concrete\Core\User\User could not be converted to a string
…/src/Form/Service/Form.php211:
return '<input type="hidden"' . $nameAndID . $this->serializeMiscFields('', $miscFields) . ' value="' . $value . '" />';
}
This appears to be because a User object is passed to the form service and it's trying to push that out into a hidde form field.
Object of class Concrete\Core\User\User could not be converted to a string
…/src/Form/Service/Form.php211:
return '<input type="hidden"' . $nameAndID . $this->serializeMiscFields('', $miscFields) . ' value="' . $value . '" />';
}
This appears to be because a User object is passed to the form service and it's trying to push that out into a hidde form field.
Type: | Ticket |
---|---|
Status: | In Progress |
I uploaded version 2.1.4 which resolves the issue.
Please let me know if there's anything else.
Please let me know if there's anything else.
Thanks for the fix.
I've noticed that it seems to be necessary to reset all user's 2FA details in order for this to work. I updated the package, but attempting to login resulted in an error after entering the code:
Exception Occurred: packages/two_step_authentication/src/Overrides/Controller.php:141 Call to a member function getUserObject() on null (0) (this is from the Logs - debug is off)
I've reset my own access, and the addon is now working as expected, and I've asked the client to reset all their accounts. Fortunately, there are only a handful so it's not a big task, but you might want to look into this issue for other users.
I've noticed that it seems to be necessary to reset all user's 2FA details in order for this to work. I updated the package, but attempting to login resulted in an error after entering the code:
Exception Occurred: packages/two_step_authentication/src/Overrides/Controller.php:141 Call to a member function getUserObject() on null (0) (this is from the Logs - debug is off)
I've reset my own access, and the addon is now working as expected, and I've asked the client to reset all their accounts. Fortunately, there are only a handful so it's not a big task, but you might want to look into this issue for other users.
That's unexpected... thank you for letting me know.
Thank you for bringing this to my attention.
As I'm away at the moment I'll only be able to take care of this on tuesday.
Sorry for the inconvenience.
I'll keep you posted here as soon as it's fixed.