Ensure that the auth key is always available

This commit is contained in:
Kijin Sung 2016-04-24 16:38:26 +09:00
parent 2227e0d278
commit 85396efcf9
2 changed files with 40 additions and 0 deletions

View file

@ -149,6 +149,11 @@ class installController extends install
$config['db']['master']['prefix'] .= '_';
}
// Create new crypto keys.
$config['crypto']['encryption_key'] = Rhymix\Framework\Security::getRandom(64, 'alnum');
$config['crypto']['authentication_key'] = Rhymix\Framework\Security::getRandom(64, 'alnum');
$config['crypto']['session_key'] = Rhymix\Framework\Security::getRandom(64, 'alnum');
// Set the default language.
$config['locale']['default_lang'] = Context::getLangType();
$config['locale']['enabled_lang'] = array($config['locale']['default_lang']);