Delete the cache entry allowing direct login again
This commit is contained in:
parent
23bad85847
commit
58fb0beaa3
|
@ -1074,9 +1074,7 @@ class Profile
|
||||||
|
|
||||||
// We need to extract the basebath from the profile url
|
// We need to extract the basebath from the profile url
|
||||||
// to redirect the visitors '/magic' module.
|
// to redirect the visitors '/magic' module.
|
||||||
// Note: We should have the basepath of a contact also in the contact table.
|
$basepath = Contact::getBasepath($contact['url']);
|
||||||
$urlarr = explode('/profile/', $contact['url']);
|
|
||||||
$basepath = $urlarr[0];
|
|
||||||
|
|
||||||
if ($basepath != $a->getBaseURL() && !strstr($dest, '/magic') && !strstr($dest, '/rmagic')) {
|
if ($basepath != $a->getBaseURL() && !strstr($dest, '/magic') && !strstr($dest, '/rmagic')) {
|
||||||
$magic_path = $basepath . '/magic' . '?f=&owa=1&dest=' . $dest;
|
$magic_path = $basepath . '/magic' . '?f=&owa=1&dest=' . $dest;
|
||||||
|
|
|
@ -7,6 +7,7 @@ namespace Friendica\Module;
|
||||||
|
|
||||||
use Friendica\BaseModule;
|
use Friendica\BaseModule;
|
||||||
use Friendica\Core\Authentication;
|
use Friendica\Core\Authentication;
|
||||||
|
use Friendica\Core\Cache;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
@ -27,6 +28,7 @@ class Logout extends BaseModule
|
||||||
$visitor_home = null;
|
$visitor_home = null;
|
||||||
if (remote_user()) {
|
if (remote_user()) {
|
||||||
$visitor_home = Profile::getMyURL();
|
$visitor_home = Profile::getMyURL();
|
||||||
|
Cache::delete('zrlInit:' . $visitor_home);
|
||||||
}
|
}
|
||||||
|
|
||||||
Hook::callAll("logging_out");
|
Hook::callAll("logging_out");
|
||||||
|
|
Loading…
Reference in a new issue