src/OwpUsers.inc.php
public function updateLostPassword($password, $uuid)
    {
        $new_hash = $this->genPasswdHash($password);

        $this->OwpDBMySQLi->query('BEGIN');

        $this->OwpDBMySQLi->query(
            "
            UPDATE tbl_users
            SET tbl_users.passwd = '" . $new_hash . "',
                tbl_users.statusID = 2,
                tbl_users.reset_pass_uuid = NULL
            WHERE tbl_users.reset_pass_uuid = '" . (string)$uuid . "'
            LIMIT 1"
        );

        // Execute owpUDF_On_updatePassword user defined function
        if (function_exists("owpUDF_On_updatePassword")) {
            $owpUDF_On_updatePassword = owpUDF_On_updatePassword(array("userID" => (int)self::userID(), "db" => $this->OwpDBMySQLi));
            if ($owpUDF_On_updatePassword) {
                throw new Exception($owpUDF_On_updatePassword, 30);
            }
        }

        if ($this->OwpDBMySQLi->query('COMMIT') !== false) {
            return true;
        } else {
            // transaction failed, rollback
            $this->OwpDBMySQLi->query('ROLLBACK');
            $this->errors[] = array(
                "message" => "updateLostPassword: transaction failed, rollback.",
                "details" => array("last_mysql_error" => $this->OwpDBMySQLi->MySQLFirephpGetLastMysqlError()),
            );

            return false;
        }

    }
public function updateLostPassword($password, $uuid)
    {
        $new_hash = $this->genPasswdHash($password);

        $this->OwpDBMySQLi->query('BEGIN');

        $this->OwpDBMySQLi->query(
            "
            UPDATE tbl_users
            SET tbl_users.passwd = '" . $new_hash . "',
                tbl_users.statusID = 2,
                tbl_users.reset_pass_uuid = NULL
            WHERE tbl_users.reset_pass_uuid = '" . (string)$uuid . "'
            LIMIT 1"
        );

        // Execute owpUDF_On_updatePassword user defined function
        if (function_exists("owpUDF_On_updatePassword")) {
            $owpUDF_On_updatePassword = owpUDF_On_updatePassword(array("userID" => (int)self::userID(), "db" => $this->OwpDBMySQLi));
            if ($owpUDF_On_updatePassword) {
                throw new Exception($owpUDF_On_updatePassword, 30);
            }
        }

        if ($this->OwpDBMySQLi->query('COMMIT') !== false) {
            return true;
        } else {
            // transaction failed, rollback
            $this->OwpDBMySQLi->query('ROLLBACK');
            $this->errors[] = array(
                "message" => "updateLostPassword: transaction failed, rollback.",
                "details" => array("last_mysql_error" => $this->OwpDBMySQLi->MySQLFirephpGetLastMysqlError()),
            );

            return false;
        }

    }
updateLostPassword

@method updateLostPassword($password, $uuid) Usually used in conjunction with getUserIDViaLostPassUUID() and setLostPassUUID() for lost passwords or to the user to updated their own passwrd
@access public
@see    OwpUsers::getUserIDViaLostPassUUID()
@see    OwpUsers::setLostPassUUID()

@param string $password New user password
@param string $uuid     Lost Pass UUID

@throws Exception Thrown on UDF failures code 30

@return boolean

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0