X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/237c40dc072e4a14ca3ce9c53d0de95c3370eba5..3cfdc427066ffa563f292c8267ecb8db8e1fd9d0:/src/admin.creditos.php?ds=inline diff --git a/src/admin.creditos.php b/src/admin.creditos.php index f98c434..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()); @@ -41,6 +41,6 @@ else // Si no llen admin_form_creditos(Usuario::getSocios()); } -marco_pie('Leandro Lucarella', 'llucare@fi.uba.ar'); +marco_pie('Leandro Lucarella', 'llucare@fi.uba.ar', 'img/luca.png'); ?> \ No newline at end of file