Skip to content

Commit

Permalink
Add symfony2 security encoders see #7646
Browse files Browse the repository at this point in the history
- Add bcrypt enconder.
- Add password-compat if bcrypt is used in php < 5.5.
- New db fields: user.salt, user.username_canonical.
- Remove use of api_get_encrypted_password().
- During installation the UserManager::create_user() is now used.
- Add Repository and Manager classes for the user entity.
- Remove function encryptPass in cm_webservice.php
- Fix registration.soap.php
  • Loading branch information
jmontoyaa committed May 12, 2015
1 parent c59bbbc commit dd94788
Show file tree
Hide file tree
Showing 19 changed files with 777 additions and 512 deletions.
4 changes: 2 additions & 2 deletions main/admin/user_list.php
Expand Up @@ -393,16 +393,16 @@ function get_number_of_users() {
function get_user_data($from, $number_of_items, $column, $direction) {
$sql = prepare_user_sql_query(false);

/* @todo will not work because now we use the salt field
$checkPassStrength = isset($_GET['check_easy_passwords']) && $_GET['check_easy_passwords'] == 1 ? true : false;

if ($checkPassStrength) {
$easyPasswordList = api_get_easy_password_list();
$easyPasswordList = array_map('api_get_encrypted_password', $easyPasswordList);
$easyPasswordList = array_map(array('Database', 'escape_string'), $easyPasswordList);
$easyPassword = implode("' OR password LIKE '", $easyPasswordList);
$sql .= "AND password LIKE '$easyPassword' ";
}
}*/

if (!in_array($direction, array('ASC','DESC'))) {
$direction = 'ASC';
Expand Down

0 comments on commit dd94788

Please sign in to comment.