You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
Problem when access wp-admin directly . WP redirect to wp-login.php with REAUTH=1 parameter.
This parameter kill all cookies...
I already get this prob with my CAS plugin and resolved it with filter.
To solve this , I add a filter into construct to remove this parameter
add_filter( 'login_url', array( $this, 'efg_wp_cas_clear_reauth' ) );
And my function :
/**
* Clear reauth parameter from login url to login directly from CAS server.
* Remove the reauth=1 parameter from the login URL, if applicable. This allows
* us to transparently bypass the mucking about with cookies that happens in
* wp-login.php immediately after wp_signon when a user e.g. navigates directly
* to wp-admin.
*/
public function efg_wp_cas_clear_reauth( $login_url ) {
Hello
Problem when access wp-admin directly . WP redirect to wp-login.php with REAUTH=1 parameter.
This parameter kill all cookies...
I already get this prob with my CAS plugin and resolved it with filter.
To solve this , I add a filter into construct to remove this parameter
add_filter( 'login_url', array( $this, 'efg_wp_cas_clear_reauth' ) );
And my function :
/**
* Clear reauth parameter from login url to login directly from CAS server.
* Remove the reauth=1 parameter from the login URL, if applicable. This allows
* us to transparently bypass the mucking about with cookies that happens in
* wp-login.php immediately after wp_signon when a user e.g. navigates directly
* to wp-admin.
*/
public function efg_wp_cas_clear_reauth( $login_url ) {
Hope will help people using this plugin.
The text was updated successfully, but these errors were encountered: