~intrahealth+informatics/i2ce/4.3.2-release

« back to all changes in this revision

Viewing changes to modules/User/modules/UserAccess/lib/I2CE_UserAccess.php

  • Committer: Ally Shaban
  • Date: 2018-02-27 08:43:28 UTC
  • Revision ID: allyshaban5@gmail.com-20180227084328-3nczjir0jvdrhizl
initially set default values to firstname,lastname etc as these fields dont have default values in DB

Show diffs side-by-side

added added

removed removed

Lines of Context:
624
624
      * @returns boolean. true on success
625
625
      */
626
626
    public function _createUser($username, $password, $role = false, $details= array()) {
627
 
        $qry = "INSERT INTO " . $this->detailTable . " ( username, password, default_password) VALUES (?,?,?)";
628
 
        $params = array($username,$this->encryptPassword($password), 1);
 
627
        $qry = "INSERT INTO " . $this->detailTable . " ( username, password, default_password,firstname,lastname,creator) VALUES (?,?,?,?,?,?)";
 
628
        $params = array($username,$this->encryptPassword($password), 1,'','',0);
629
629
        try {
630
630
            I2CE_PDO::execParam($qry, $params );
631
631
        } catch( PDOException $e ) {