* [FIX] Minor bugfixes

* [ADD] Added temp master password counter (mas 100 attempts)
This commit is contained in:
nuxsmin
2016-06-15 12:22:22 +02:00
parent 6fca361851
commit 47639e3cf1
2 changed files with 15 additions and 2 deletions

View File

@@ -1,3 +1,14 @@
=== ** v1.2.0.12 ===
* [ADD] Added temp master password counter (max 100 attempts)
* [FIX] Fixed issue when paging accounts when sort key was set.
* [FIX] Closes #204. Fixed LDAP group search when ADS is set. Thanks to @vplanas
* [ADD] Add styles.css minimized version file
* [FIX] Closes #196. Fixed textarea element name. Thanks to @joeg1484 and @st3reo
* [FIX] Improved installer when database is located in another host.
* [FIX] Enforce 32 bytes IV length.
* [FIX] Minor bugfixes
=== ** v1.2.0.11 ===
* [MOD] Modified logout behavior to prevent login for two times. Related #189

View File

@@ -75,10 +75,12 @@ class Crypt
$source = MCRYPT_RAND;
}
$ivSize = mcrypt_enc_get_iv_size($mcryptRes);
// Crear el IV y asegurar que tiene una longitud de 32 bytes
do {
$cryptIV = mcrypt_create_iv(mcrypt_enc_get_iv_size($mcryptRes), $source);
} while (strlen($cryptIV) < 32);
$cryptIV = mcrypt_create_iv($ivSize, $source);
} while (strlen(substr($cryptIV, 0, $ivSize)) < $ivSize);
mcrypt_module_close($mcryptRes);