Skip to content

Commit

Permalink
* [FIX] Solves #323, help display for bind password on LDAP configura…
Browse files Browse the repository at this point in the history
…tion in classic theme. Thanks to @ejouvin

* [FIX] Solves #325, Custom field creation, "empty" type list in theme classic. Thanks to @ejouvin
* [FIX] Closes #319.
* [FIX] Fixed issue when showing password through web UI. Closes #30. Thanks to @Naelwan for the feedback
* [FIX] Closes #313, closes #317, closes #328. Fix for php7 for users / groups / profiles display. Thanks to @ejouvin
* [MOD] Modified alertify theme for MDL
* [FIX] Closes #352, Closes #329
* [FIX] Closes #293, closes #292. Enforces MySQL password on installation
* [FIX] Closes #321. Thanks to @ejouvin for the feedback
* [FIX] Solves #345. Send request for account isn't working on classic theme. Thanks to @anburhce for the feedback
  • Loading branch information
nuxsmin committed Dec 20, 2016
1 parent 6bd2d7e commit f2f71e9
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 9 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
=== ** v1.2.0.19 ===

* [FIX] Solves #323, help display for bind password on LDAP configuration in classic theme. Thanks to @ejouvin
* [FIX] Solves #325, Custom field creation, "empty" type list in theme classic. Thanks to @ejouvin
* [FIX] Closes #319.
* [FIX] Fixed issue when showing password through web UI. Closes #30. Thanks to @Naelwan for the feedback
* [FIX] Closes #313, closes #317, closes #328. Fix for php7 for users / groups / profiles display. Thanks to @ejouvin
* [MOD] Modified alertify theme for MDL
* [FIX] Closes #352, Closes #329
* [FIX] Closes #293, closes #292. Enforces MySQL password on installation
* [FIX] Closes #321. Thanks to @ejouvin for the feedback
* [FIX] Solves #345. Send request for account isn't working on classic theme. Thanks to @anburhce for the feedback

=== ** v1.2.0.18 ===

* [FIX] Fixed API request error when user's preferences are not set. Thanks to @jtorresc for the feedback. Closes #290
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG-ES
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
=== ** v1.2.0.19 ===

* [FIX] Solves #323, mostrar ayuda para la clave de conexión a LDAP en tema cñasico. Gracias a @ejouvin
* [FIX] Solves #325, Lista de tipo en blanco en la creación de campo personalizado en tema clásico. Gracias a @ejouvin
* [FIX] Closes #319.
* [FIX] Corregido error al mostrar las claves en el navegador. Closes #30. Gracias a @Naelwan por el feedback
* [FIX] Closes #313, #317. Parche para php7 al mostrar usuarios, grupos y perfiles. Gracias a @ejouvin
* [MOD] Modificado tema de alertify para MDL
* [FIX] Solves #345. El envío de peticiones de cuenta no funcionaba en el tema clásico. Gracias as @anburhce for the feedback
* [FIX] Closes #352, Closes #329
* [FIX] Closes #293, closes #292. Refuerza la clave de MySQL en la instalación
* [FIX] Closes #321. Gracias a @ejouvin por el feedback

=== ** v1.2.0.18 ===

* [FIX] Corregido error en peticiones a la API cuando las preferencias del usuario no están definidas. Gracias a @jtorresc por el aviso. Closes #290
Expand Down
2 changes: 1 addition & 1 deletion inc/Installer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private static function setupMySQLDatabase()

// Si no es modo hosting se crea un hash para la clave y un usuario con prefijo "sp_" para la DB
if (!self::$_isHostingMode) {
self::setDbpass(md5(time() . self::$_password));
self::setDbpass(Util::generate_random_bytes(16, true));
self::setDbuser(substr('sp_' . self::$_username, 0, 16));

// Comprobar si el usuario sumistrado existe
Expand Down
12 changes: 9 additions & 3 deletions inc/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ public static function runningOnWindows()
* Generar una cadena aleatoria usuando criptografía.
*
* @param int $length opcional, con la longitud de la cadena
* @param bool $useSpecial Usar caracteres especiales
* @return string
*/
public static function generate_random_bytes($length = 30)
public static function generate_random_bytes($length = 30, $useSpecial = false)
{
// Try to use openssl_random_pseudo_bytes
if (function_exists('openssl_random_pseudo_bytes')) {
Expand All @@ -91,7 +92,12 @@ public static function generate_random_bytes($length = 30)

// Fallback to mt_rand()
$characters = '0123456789';
$characters .= 'abcdefghijklmnopqrstuvwxyz';
$characters .= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWZ';

if ($useSpecial === true) {
$characters .= '@#$%&/?¿=!|_-^*';
}

$charactersLength = strlen($characters) - 1;
$pseudo_byte = "";

Expand Down Expand Up @@ -309,7 +315,7 @@ public static function curlIsAvailable()
*/
public static function getVersion($retBuild = false)
{
$version = array(1, 2, 0, '18');
$version = array(1, 2, 0, '19');

if (!$retBuild) {
array_pop($version);
Expand Down
15 changes: 14 additions & 1 deletion inc/themes/classic/js/functions.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/themes/classic/request.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<img src="<?php \SP\Init::$WEBURI; ?>imgs/back.png" alt="save"/>
</button>

<button type="submit" form="frmUpdUsrPass" title="<?php echo _('Enviar'); ?>" class="button-action">
<button type="submit" form="frmRequestModify" title="<?php echo _('Enviar'); ?>" class="button-action">
<img src="<?php \SP\Init::$WEBURI; ?>imgs/check.png" alt="save"/>
</button>
</div>
2 changes: 1 addition & 1 deletion inc/themes/material-blue/css/search-grid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f2f71e9

Please sign in to comment.