I played with the plugin a little more and I found some things.
1. The generated link is not using the corrent permalink structure. I have installed the WP site in subfolder, but the subfolder name is not part of the site url.
So my test site is http://test.luga.bg , but the WP is installed in http://test.luga.bg/bg_wp/. The /bg_wp/ is not part of my links.
Example: http://test.luga.bg/lye/ is correct, insteadof http://test.luga.bg/bg_wp/lye/
The generated Login link unfortinately contain /bg_wp/ and it doesn’t login the user. After manualy deleting the /bg_wp/ the user is loged, but not at the first page, but at the second. So the first opened page when click on the link user is unlogged, and after user move to another page he is logged. Probably a page reload is needed somehow….
With some modifications in loglinc.inc.php the problem with incorrect redirect is resolved. Problably there is better way to do this, but the code is working as well:
It start on line 65;
if($hash === $hashcheck && ((int)$time + $expires) >= time()) {
$this->do_login((int)$uid);
//$url = apply_filters(__NAMESPACE__ . '_redirect_url', site_url());
$url = get_option( 'home' );
$Path = $_SERVER['REQUEST_URI'];
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
//wp_redirect($pageURL);
exit();
}
Another question. Where is stored the generated login link in the databaes? Which table?