X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/dff05914ca6f622974ed9fcbd7a6c1b0052de438..refs/heads/master:/src/admin.creditos.php diff --git a/src/admin.creditos.php b/src/admin.creditos.php index 270255f..4294ab4 100644 --- a/src/admin.creditos.php +++ b/src/admin.creditos.php @@ -22,9 +22,9 @@ if (isset($_POST['admin_cred']) and isset($_POST['admin_cred_user']) { if (check_numero($_POST['admin_cred']) and check_asociado($_POST['admin_cred_user']) - and check_password($u = new Usuario($_POST['admin_cred_user']), - $_POST['admin_cred_pass'])) + and check_password($_SESSION['user'], $_POST['admin_cred_pass'])) { + $u = new Usuario($_POST['admin_cred_user']); $u->addCreditos($_POST['admin_cred']); ok('Se agregaron '.$_POST['admin_cred'].' créditos al usuario ' .$u->getNombre().' '.$u->getApellido());