Skip to content

Customize no permission error message #113

@MariaMozgunova

Description

@MariaMozgunova

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions