Revert "Repair redirect after login"

This reverts commit 6b0b7fbeea.
This commit is contained in:
Alexander A. Klimov 2015-10-22 16:55:40 +02:00
parent 6b0b7fbeea
commit fdb186ec56
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class LoginForm extends Form
if ($this->created) {
$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;
}
return Url::fromPath($redirect);