From 731ee6ded6474db4f3cd062e2156ac9573b2ca3c Mon Sep 17 00:00:00 2001 From: mohammed059 Date: Sat, 14 Sep 2024 08:53:06 +0300 Subject: [PATCH] login new api --- src/PEAR2/Net/RouterOS/Client.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/PEAR2/Net/RouterOS/Client.php b/src/PEAR2/Net/RouterOS/Client.php index 08bdf63..49a2b5a 100644 --- a/src/PEAR2/Net/RouterOS/Client.php +++ b/src/PEAR2/Net/RouterOS/Client.php @@ -289,13 +289,14 @@ private static function _login( $request->send($com); $response = new Response($com, false, $timeout); $request->setArgument('name', $username); - $request->setArgument( - 'response', - '00' . md5( - chr(0) . $password - . pack('H*', $response->getProperty('ret')) - ) - ); + $request->setArgument('password', $password); + // $request->setArgument( + // 'response', + // '00' . md5( + // chr(0) . $password + // . pack('H*', $response->getProperty('ret')) + // ) + // ); $request->verify($com)->send($com); $response = new Response($com, false, $timeout);