Merge pull request #5865 from JonnyTischbein/issue_wrong_login_return

Fix Login return with pop-up menu form
This commit is contained in:
Hypolite Petovan 2018-10-09 15:50:43 -04:00 committed by GitHub
commit 83dca0018d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ class Login extends BaseModule
goaway(self::getApp()->get_baseurl());
}
return self::form(self::getApp()->get_baseurl(), intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
return self::form($_SESSION['return_url'], intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
}
public static function post()