wp-openid-connect-server icon indicating copy to clipboard operation
wp-openid-connect-server copied to clipboard

Customize no permission error message

Open MariaMozgunova opened this issue 11 months ago • 0 comments

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.

https://github.com/Automattic/wp-openid-connect-server/blob/3c5f3aacb611dcc6d1b7823b58b07160212151ea/src/Http/Handlers/AuthenticateHandler.php#L79-L82

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

MariaMozgunova avatar Mar 04 '24 11:03 MariaMozgunova