We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can someone please try this new WordPress Auth adapter and send some feedback:
Thanks!
The text was updated successfully, but these errors were encountered:
The Auth Adapter is working. I have restricted access to predefined roles (administrator and editor).
public function user(): ?User { $wpuser = wp_get_current_user(); $roles = ( array ) $wpuser->roles; $array=array("administrator", "editor"); if ($wpuser->exists() && in_array($roles[0],$array)) { $user = new User(); $user->setUsername($wpuser->data->user_login); $user->setName($wpuser->data->display_name); $user->setRole('user'); $user->setHomedir('/'); $user->setPermissions($this->permissions); return $user; }
Sorry, something went wrong.
WP adapter has been updated and included in the main repo with 15c386f
No branches or pull requests
Can someone please try this new WordPress Auth adapter and send some feedback:
Thanks!
The text was updated successfully, but these errors were encountered: