Skip to content

Commit

Permalink
14/12/2021 Cambiar password.
Browse files Browse the repository at this point in the history
Problema solucionado.
  • Loading branch information
SashaMGuerra committed Dec 14, 2021
1 parent b4c351c commit 7f6613a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codigoPHP/cambiarPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@
*/
if (!$oResultado) {
$aErrores['passwordActual'] = 'Contraseña incorrecta.';
$bEntradaOK = false;
}
/*
* Si la contraseña coincide con la introducida, valida la nueva y comprueba
* si la introducida repetida es igual.
*/
else{
// Si la descripción no cumple con lo especificado, mostrará el error.
$aErrores['passwordActual'] = validacionFormularios::validarPassword($_REQUEST['passwordActual'], 8, 4, 1);
$aErrores['passwordNueva'] = validacionFormularios::validarPassword($_REQUEST['passwordNueva'], 8, 4, 1);

// Si la nueva contraseña no coincide con la repetida, añade el error.
Expand Down

0 comments on commit 7f6613a

Please sign in to comment.