Skip to content

Fix problem with double search#275

Merged
heiglandreas merged 1 commit intomasterfrom
fix-fatal-error
Apr 15, 2025
Merged

Fix problem with double search#275
heiglandreas merged 1 commit intomasterfrom
fix-fatal-error

Conversation

@heiglandreas
Copy link
Copy Markdown
Owner

Due to the change in authentication and authorization we need to search the use4r a second time during the authorization phase. Should the user have been identified with a different property than the one used for the WordPress username, that would fail as we passed in only the WP_User that didn't have the original parameter anymore.

I could instead also have created a filter myself based on the WP_User objects username and the username attribute, now that i think about it. This seemed more straight forward...

Fixes #274

Due to the change in authentication and authorization we need to search the
use4r a second time during the authorization phase. Should the user have been
identified with a different property than the one used for the WordPress
username, that would fail as we passed in only the WP_User that didn't have the
original parameter anymore.

I could instead also have created a filter myself based on the WP_User objects
username and the username attribute, now that i think about it. This seemed more
straight forward...
Comment thread src/Authorize.php Dismissed
Comment thread src/Authorize.php Dismissed
Comment thread src/Authorize.php Dismissed
@heiglandreas heiglandreas merged commit 390ee1e into master Apr 15, 2025
48 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fatal error with 3.1.1. release

2 participants