mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#8889 Fixed url location
This commit is contained in:
parent
66a69aa548
commit
0ff688f6fa
@ -193,15 +193,23 @@ switch ($action) {
|
||||
|
||||
if ($user->isWaitingDoubleAuth()) {
|
||||
if ($user->validateDoubleAuthCode()) {
|
||||
// Logged. Refresh the page
|
||||
header('Location: .');
|
||||
$url = ui_get_full_url('');
|
||||
$url = str_replace("\n", '', $url);
|
||||
$url = str_replace('?action=logout', '', $url);
|
||||
|
||||
// Logged. Refresh the page.
|
||||
header('Location: '.$url);
|
||||
return;
|
||||
} else {
|
||||
$user->showDoubleAuthPage();
|
||||
}
|
||||
} else {
|
||||
// Logged. Refresh the page
|
||||
header('Location: .');
|
||||
$url = ui_get_full_url('');
|
||||
$url = str_replace("\n", '', $url);
|
||||
$url = str_replace('?action=logout', '', $url);
|
||||
|
||||
// Logged. Refresh the page.
|
||||
header('Location: '.$url);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user