src/IdentityModel.php
public function insert(array $values): int
    {
        $values['added%sql'] = 'NOW()';
        $values['hash'] = $this->getHash($values['password']);  // auto hash password
        unset($values['password']);

        $res = $this->connection->insert($this->tableIdentity, $values)->execute(Dibi::IDENTIFIER);
        return $res;
    }
public function insert(array $values): int
    {
        $values['added%sql'] = 'NOW()';
        $values['hash'] = $this->getHash($values['password']);  // auto hash password
        unset($values['password']);

        $res = $this->connection->insert($this->tableIdentity, $values)->execute(Dibi::IDENTIFIER);
        return $res;
    }
Insert.

@param array $values
@return int
@throws \Dibi\Exception