• I need to allow login from a specific role from my app.
    If someone from another role tries to login from my app, I need to tell him this app is not for his role.

Viewing 1 replies (of 1 total)
  • Plugin Author Bagus

    (@contactjavas)

    Hi @r2kjet , I think this is not directly related to the plugin.
    You can add the role checking in three ways:

    1. By creating custom checking somewhere in your code. So, not related to this plugin
    2. Or, you can directly check them during authentication process through WordPress authenticate filter. Read more about it here
    3. Or, you can use this plugin’s jwt_auth_do_custom_auth filter. But this is harder, you’ll need to dig into the plugin’s code.

    Regards,
    Bagus

Viewing 1 replies (of 1 total)
  • The topic ‘How to allow login from a specific user role?’ is closed to new replies.