Fix bug for user creation - password

This commit is contained in:
sparkyx 2005-10-05 14:34:30 +00:00
parent f0ab99278b
commit 65c73494fd
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ if ( isset ($_GET["action"]) ) {
// Add user
if ( isset ($_POST["LOGIN"]) ) {
$cn=DbConnect();
$pass5=md5($PASS);
$pass5=md5($_POST['PASS']);
$Res=ExecSql($cn,"insert into ac_users(use_first_name,use_name,use_login,use_active,use_pass
,use_usertype)
values ('".$_POST["FNAME"]."','".$_POST["LNAME"]."','".$_POST["LOGIN"]."',1,'$pass5',

View file

@ -69,7 +69,7 @@ echo '<h2>Gestion Utilisateurs</h2>';
<?
/* Parse the changes */
if ( isset ( $reset_passwd) ){
if ( isset ( $_GET['reset_passwd']) ){
$cn=DbConnect();
$l_pass=md5('phpcompta');
$Res=ExecSql($cn, "update ac_users set use_pass='$l_pass' where use_id=$uid");