Fixed: Better fallback to installer cookieValidationKey

This commit is contained in:
Lucas Bartholemy 2016-07-16 18:07:08 +02:00
parent 5eec096fe4
commit 139d861920

View File

@ -27,9 +27,11 @@ class Request extends \yii\web\Request
if (\humhub\models\Setting::isInstalled()) {
$secret = Yii::$app->settings->get('secret');
if ($secret != "") {
$this->cookieValidationKey = $secret;
$this->cookieValidationKey = $secret;
}
} else {
}
if ($this->cookieValidationKey == '') {
$this->cookieValidationKey = 'installer';
}
}