original_string: public function logIn($username,$password) {
  		session_regenerate_id(true);
  		$sql = "SELECT id,password FROM {$this->primaryTable} WHERE username=:username AND inactive=0";
  		if ($result = $this->executeQuery($sql,array(":username"=>$username))) {
  			if (password_verify($password,$result[0]['password'])) {
  				$this->setSessionUserId($result[0]['id']);
  				return true;			
  			}
  		}
  		return false;
  	}
code: public function logIn($username,$password) {
  		session_regenerate_id(true);
  		$sql = "SELECT id,password FROM {$this->primaryTable} WHERE username=:username AND inactive=0";
  		if ($result = $this->executeQuery($sql,array(":username"=>$username))) {
  			if (password_verify($password,$result[0]['password'])) {
  				$this->setSessionUserId($result[0]['id']);
  				return true;			
  			}
  		}
  		return false;
  	}
code_tokens: public function logIn ( $ username , $ password ) { session_regenerate_id ( true ) ; $ sql = "SELECT id,password FROM {$this->primaryTable} WHERE username=:username AND inactive=0" ; if ( $ result = $ this -> executeQuery ( $ sql , array ( ":username" => $ username ) ) ) { if ( password_verify ( $ password , $ result [ 0 ] [ 'password' ] ) ) { $ this -> setSessionUserId ( $ result [ 0 ] [ 'id' ] ) ; return true ; } } return false ; }
docstring: Log in a User
  @param string $username The User's username
  @param string $password The User's password
  @return boolean True on successful login, false on anything else
docstring_tokens: Log in a User