ayssono
Forum Replies Created
-
Hi Bel!
Wow, great, I am really looking forward to it 🙂
Thank you!
Kind regards,
Klaus 🙂
Hi Bel!
Thank you very much, enabe/disable would be great. 🙂
Kind regards,
Klaus
ok, thx
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHello???
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHello!
Any idea, why it is still not working with the custom url?
Kind regards,
Klaus
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginIt shows now: 1NEXT_AD_INT_PREFIX312325
But registration is still not working.
Kind regards,
Klaus
- This reply was modified 4 years, 11 months ago by ayssono.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom login1NEXT_AD_INT_PREFIX3123
25Ah, that number changed and is added now.
- This reply was modified 4 years, 11 months ago by ayssono.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginCurrent plugin code:
print "1"; print NEXT_AD_INT_PREFIX; // should print "next_ad_int_" add_filter('next_ad_int_auth_enable_login_check', function($loginCheckAlreadyEnabled) { print "2"; if (!$loginCheckAlreadyEnabled) { $loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array ( "/logreg" )); } return $loginCheckAlreadyEnabled; }, 10, 1); print "3";It delivers now:
1NEXT_AD_INT_PREFIX312325- This reply was modified 4 years, 11 months ago by ayssono.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginMy plugin code is like this now:
print "1"; print NEXT_AD_INT_PREFIX; // should print "next_ad_int_" add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function ($loginCheckAlreadyEnabled) { print "2"; if (!$loginCheckAlreadyEnabled) { $loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array ( "/logreg" )); } return $loginCheckAlreadyEnabled; }, 10, 1); print "3";This delivers: 1NEXT_AD_INT_PREFIX31235
I will try the change of the filter now.
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHi!
Thank you for your patience! 🙂
I get now: 1NEXT_AD_INT31235
There is no “next_ad_int_”.
Kind regards,
KlausForum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHi!
When the plugin code is like this,
print NEXT_AD_INT;doesn’t work, there is no output.print "1"; add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function ($loginCheckAlreadyEnabled) { print NEXT_AD_INT; print "2"; if (!$loginCheckAlreadyEnabled) { $loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array ( "/logreg" )); } return $loginCheckAlreadyEnabled; }, 10, 1); print "3";Kind regards,
Klaus
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHi!
I just get:
131235Which means:
plugin 1
plugin 3
init 1
init 2
init 3
init 5Kind regards,
Klaus
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHello!
No, it is not a multisite environment.I changed the function isOnLoginPage to:
public function isOnLoginPage() { $r = false; print "1"; $page = $_SERVER['PHP_SELF']; $required = "wp-login.php"; $isOnWpLogin = substr($page, -strlen($required)) == $required; $isOnXmlRpc = $this->isOnXmlRpcPage(); print "2"; if ($isOnWpLogin || $isOnXmlRpc) { $r = true; } print "3"; $customLoginPageEnabled = $this->dc()->getConfiguration()->getOptionValue(NextADInt_Adi_Configuration_Options::CUSTOM_LOGIN_PAGE_ENABLED); if ($customLoginPageEnabled) { if (isset($_SERVER["REQUEST_URI"]) && strpos($_SERVER["REQUEST_URI"], '/login') !== false) { $r = true; print "4"; } } $r = apply_filters(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', $r); print "5"; return $r; }Result is:
It shows up: 1,2,3,5, but no 4.Kind regards,
Klaus
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHello!
The code is just like a plugin, because I made a plugin with the code and didn’t add it to functions file. That works normally great.
Here is the code:
<?php /** * Plugin Name: Custom Login URL for NEXT AD Plugin * Plugin URI: https://active-directory-wp.com/docs/FAQ/How_to_trigger_authentication_for_custom_URL.html * Description: Custom URL for WP Login with activated NEXT AD Plugin and to register new users * Version: 1.0 * Author: AD NEXT * Author URI: https://active-directory-wp.com/docs/FAQ/How_to_trigger_authentication_for_custom_URL.html * License: GPL12 */ add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function ($loginCheckAlreadyEnabled) { if (!$loginCheckAlreadyEnabled) { $loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array ( "/logreg" )); } return $loginCheckAlreadyEnabled; }, 10, 1); ?>Kind regards,
Klaus 🙂
Forum: Plugins
In reply to: [Next Active Directory Integration] Usage of another URL for custom loginHello!
I have this code and it shows only 1 and 3, no 2:
print "1"; add_filter(NEXT_AD_INT_PREFIX . 'auth_enable_login_check', function ($loginCheckAlreadyEnabled) { print "2"; if (!$loginCheckAlreadyEnabled) { $loginCheckAlreadyEnabled = in_array(strtok($_SERVER["REQUEST_URI"],'?'), array ( "/logreg" )); } return $loginCheckAlreadyEnabled; }, 10, 1); print "3";Kind regards,
Klaus