Skip to content

Commit

Permalink
set application key by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 22, 2012
1 parent 257d917 commit 86fa595
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
4 changes: 1 addition & 3 deletions application/config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
|
*/

'key' => '',

'auto_key' => true,
'key' => 'YourSecretKeyGoesHere!',

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion artisan
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @version 3.0.0
* @version 3.0.1
* @author Taylor Otwell <[email protected]>
* @link http://laravel.com
*/
Expand Down
15 changes: 0 additions & 15 deletions laravel/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@

ini_set('display_errors', Config::get('error.display'));

/**
* Determine if we need to set the application key to a very random
* string so we can provide a zero configuration installation but
* still ensure that the key is set to something random. It is
* possible to disable this feature.
*/
$auto_key = Config::get('application.auto_key');

if ($auto_key and Config::get('application.key') == '')
{
ob_start() and with(new CLI\Tasks\Key)->generate();

ob_end_clean();
}

/**
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may
* still be enabled on the server. To account for this, we will
Expand Down
2 changes: 1 addition & 1 deletion paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @version 3.0.0
* @version 3.0.1
* @author Taylor Otwell <[email protected]>
* @link http://laravel.com
*/
Expand Down
2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @version 3.0.0
* @version 3.0.1
* @author Taylor Otwell <[email protected]>
* @link http://laravel.com
*/
Expand Down

0 comments on commit 86fa595

Please sign in to comment.