public function newUser($user, $pass, $email = '', $fname = '', $sname = '' , $admin = False){
        $hash = password_hash($pass, PASSWORD_BCRYPT);
        return $this->db->insert($this->prefix.'users', ['user' => $user, 'pass' => $hash, 'admin' => $admin, 'email' => $email, 'first_name' => $fname, 'surname' => $sname]) ? $this->db->id() : False;
    }
public function newUser($user, $pass, $email = '', $fname = '', $sname = '' , $admin = False){
        $hash = password_hash($pass, PASSWORD_BCRYPT);
        return $this->db->insert($this->prefix.'users', ['user' => $user, 'pass' => $hash, 'admin' => $admin, 'email' => $email, 'first_name' => $fname, 'surname' => $sname]) ? $this->db->id() : False;
    }
public function newUser ( $ user , $ pass , $ email = '' , $ fname = '' , $ sname = '' , $ admin = False ) { $ hash = password_hash ( $ pass , PASSWORD_BCRYPT ) ; return $ this -> db -> insert ( $ this -> prefix . 'users' , [ 'user' => $ user , 'pass' => $ hash , 'admin' => $ admin , 'email' => $ email , 'first_name' => $ fname , 'surname' => $ sname ] ) ? $ this -> db -> id ( ) : False ; }
Creates a new user with the provided details
Creates a new user with the provided details