Fix bug for user creation - password
This commit is contained in:
parent
f0ab99278b
commit
65c73494fd
2 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue