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