1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/15219] Update hashes to bcrypt with cron

PHPBB3-15219
This commit is contained in:
Marc Alexander
2017-05-05 20:52:21 -04:00
parent ca9e3eb528
commit 18fe3b2833
4 changed files with 184 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\db\migration\data\v31x;
class update_hashes extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array(
'\phpbb\db\migration\data\v31x\v3110',
);
}
public function update_data()
{
return array(
array('config.add', array('enable_update_hashes', '1')),
array('config.add', array('update_hashes_lock', '')),
array('config.add', array('update_hashes_last_cron', '0'))
);
}
}