Native hooks
Closed this issue · 2 comments
Triloworld commented
There is init hook use that isn't proper one.
I propose to switch to:
add_action( 'login_form', array($this, 'function_name') );
Propose to add use of other pages as well when action by token can occur automatically (registration, password reset etc.)
Triloworld commented
After answer: https://gitlab.com/andrewheberle/ah-jwt-auth/-/issues/1#note_699041229
Yes, you have right. It is better option than
init
andlogin_form
. Login form hook is more frontend related than redirect.
andrewheberle commented
I have made that change in commit f7b11aa
This will be released in a new version on WordPress.org soon.