parent
20e010bea0
commit
6b0b7fbeea
|
@ -71,7 +71,7 @@ class LoginForm extends Form
|
||||||
if ($this->created) {
|
if ($this->created) {
|
||||||
$redirect = $this->getElement('redirect')->getValue();
|
$redirect = $this->getElement('redirect')->getValue();
|
||||||
}
|
}
|
||||||
if (empty($redirect) || strpos($redirect, 'authentication/logout') !== 0) {
|
if (empty($redirect) || strpos($redirect, 'authentication/logout') === 0) {
|
||||||
$redirect = static::REDIRECT_URL;
|
$redirect = static::REDIRECT_URL;
|
||||||
}
|
}
|
||||||
return Url::fromPath($redirect);
|
return Url::fromPath($redirect);
|
||||||
|
|
Loading…
Reference in New Issue