noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/03: Fix bug in creating user


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/03: Fix bug in creating user
Date: Sun, 05 Jul 2015 14:46:53 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5aff37ffdbb227ecc320b82ebd843cf5ff5279a1
Author: Dany De Bontridder <address@hidden>
Date:   Sun Jul 5 16:16:17 2015 +0200

    Fix bug in creating user
---
 include/class_user.php |    6 +++---
 include/user.inc.php   |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/class_user.php b/include/class_user.php
index cf01203..a76c584 100644
--- a/include/class_user.php
+++ b/include/class_user.php
@@ -142,12 +142,12 @@ class User
        {
 
                $Sql = "INSERT INTO ac_users(
-                        use_first_name, use_name, use_login, use_active, 
use_pass, 
-                        use_admin, use_email)
+                        use_first_name, use_name, use_login, use_active,  
+                        use_admin, use_pass, use_email)
                             VALUES ($1, $2, $3, $4, $5, $6, $7) returning 
use_id";
 
                $cn = new Database();
-               $this->id= $cn->get_value($Sql, array($this->first_name, 
$this->last_name, $this->login,0,0, $this->pass,$this->email));
+               $this->id= $cn->get_value($Sql, array($this->first_name, 
$this->last_name, $this->login,1,0, $this->pass,$this->email));
        }
 
        /**
diff --git a/include/user.inc.php b/include/user.inc.php
index 9ae1123..7e6bc8f 100644
--- a/include/user.inc.php
+++ b/include/user.inc.php
@@ -44,6 +44,7 @@ if ( isset ($_POST["ADD"]) )
     $login=str_replace(" ","",$login);
     $login=strtolower($login);
     $new_user->login=$login;
+    $new_user->pass=$pass5;
     $new_user->email=HtmlInput::default_value_post('EMAIL','');
        if ( trim($login)=="")
        {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]