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

Customize no permission error message #113

Open
MariaMozgunova opened this issue Mar 4, 2024 · 0 comments
Open

Customize no permission error message #113

MariaMozgunova opened this issue Mar 4, 2024 · 0 comments

Comments

@MariaMozgunova
Copy link
Contributor

Would it be possible to add the oidc_no_permission_error_message filter hook to the AuthenticateHandler class to customize the error message when the current user has no permission?

In our case, we need to say which action a user needs to take to be able to login.

<p><?php esc_html_e( "You don't have permission to use OpenID Connect.", 'openid-connect-server' ); ?></p>
<br/>
<p><?php esc_html_e( 'Contact your administrator for more details.', 'openid-connect-server' ); ?></p>
<br/>

Please, let me know if there is any other way to achieve it.

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

No branches or pull requests

1 participant