fixed handleAuthorization method in baseclass portal to prevent an authloop
parent
61fe61aa9d
commit
3754cff226
|
@ -81,15 +81,15 @@ abstract class Portal
|
|||
*/
|
||||
protected function handleAuthorization()
|
||||
{
|
||||
if (isset($this->request->target)) {
|
||||
$this->authorizeClient($_SERVER['REMOTE_ADDR']);
|
||||
$this->onSuccess();
|
||||
if ($this->isClientAuthorized($_SERVER['REMOTE_ADDR']) and isset($this->request->target)) {
|
||||
$this->redirect();
|
||||
} elseif ($this->isClientAuthorized($_SERVER['REMOTE_ADDR'])) {
|
||||
$this->redirect();
|
||||
} else {
|
||||
$this->showError();
|
||||
}
|
||||
} elseif (isset($this->request->target)) {
|
||||
$this->authorizeClient($_SERVER['REMOTE_ADDR']);
|
||||
$this->onSuccess();
|
||||
$this->redirect();
|
||||
} else {
|
||||
$this->showError();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue