Auth Bug in PHP 7.3
-
hey,
i had a weird bug, after activating the plugin the REST API ran into a timeout. But only if i tried to authenticate.
You add in swaggerauth.php the filter'determine_current_user'with the corresponding handler function, but you didn’t set the priority to 20. In the handler function you remove and add the filter before and after the auth process with the priority of 20.Longstory short:
this:
add_filter( 'determine_current_user', [ $basic, 'handler' ] );
should be this:add_filter( 'determine_current_user', [ $basic, 'handler' ], 20 );btw: on php 7.2 i don’t have this problem.
thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Auth Bug in PHP 7.3’ is closed to new replies.