Skip to content
Snippets Groups Projects
Commit 29013d32 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

fix RT

parent 26ddd87f
3 merge requests!2431Stable,!2424Sandbox user password hash,!2416Sandbox user password hash
Pipeline #2989 failed with stage
in 27 minutes and 39 seconds
- Administration : hashage des mots de passe administrateurs
\ No newline at end of file
<?php
foreach(Class_Users::findAllBy(['where' => 'role_level > 2']) as $user)
$user->save();
(new Class_Migration_HashAdminPasswords)->run();
\ No newline at end of file
......@@ -21,6 +21,7 @@
class Class_Crypt {
/** @see http://php.net/manual/en/function.crypt.php CRYPT_BLOWFISH section */
const BLOWFISH_PATTERN = '/^\$2[axy]\$[0-9]{2}\$/';
public function isBlowFish($value) {
......
<?php
/**
* Copyright (c) 2012-2017, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Class_Migration_HashAdminPasswords {
public function run() {
foreach(Class_Users::findAllBy(['where' => 'role_level > 2']) as $user)
$user->save();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment