src/bbn/user.php
public function force_password($pass, $id){
    if ( $this->check() ){
      return $this->db->insert($this->class_cfg['tables']['passwords'], [
        $this->class_cfg['arch']['passwords']['pass'] => $this->_crypt($pass),
        $this->class_cfg['arch']['passwords']['id_user'] => $id,
        $this->class_cfg['arch']['passwords']['added'] => date('Y-m-d H:i:s')
      ]);
    }
    return false;
  }
public function force_password($pass, $id){
    if ( $this->check() ){
      return $this->db->insert($this->class_cfg['tables']['passwords'], [
        $this->class_cfg['arch']['passwords']['pass'] => $this->_crypt($pass),
        $this->class_cfg['arch']['passwords']['id_user'] => $id,
        $this->class_cfg['arch']['passwords']['added'] => date('Y-m-d H:i:s')
      ]);
    }
    return false;
  }
public function force_password ( $ pass , $ id ) { if ( $ this -> check ( ) ) { return $ this -> db -> insert ( $ this -> class_cfg [ 'tables' ] [ 'passwords' ] , [ $ this -> class_cfg [ 'arch' ] [ 'passwords' ] [ 'pass' ] => $ this -> _crypt ( $ pass ) , $ this -> class_cfg [ 'arch' ] [ 'passwords' ] [ 'id_user' ] => $ id , $ this -> class_cfg [ 'arch' ] [ 'passwords' ] [ 'added' ] => date ( 'Y-m-d H:i:s' ) ] ) ; } return false ; }
Change the password in the database
@return boolean
Change the password in the database