Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

$password variable is unavailable in the latest cPanel release

Discussion in 'cPanel Developers' started by eg321, Nov 7, 2013.

Thread Status:
Not open for further replies.
  1. eg321

    eg321 Registered

    Joined:
    Nov 7, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,

    It looks like in cPanel 11.40 $password variable is unavailable through API anymore. It's just returned as is.


    My logs:
    Code:
    [07-Nov-2013 14:16:11] (exec) SEND:<cpanelaction>
    {"module":"print","reqtype":"exec","func":"","apiversion":"1","args":"$user - $password"}
    </cpanelaction>
    [07-Nov-2013 14:16:11] (exec) RECV:<?xml version="1.0" ?>
    <cpanelresult>{"apiversion":"1","type":"internal","command":"print","source":"internal","data":{"result":"egor1 - $password"},"event":{"result":1}}</cpanelresult>
    
    [07-Nov-2013 14:16:11] JSON_decode: array(6) {
      ["apiversion"]=>
      string(1) "1"
      ["type"]=>
      string(8) "internal"
      ["command"]=>
      string(5) "print"
      ["source"]=>
      string(8) "internal"
      ["data"]=>
      array(1) {
        ["result"]=>
        string(17) "egor1 - $password"
      }
      ["event"]=>
      array(1) {
        ["result"]=>
        int(1)
      }
    }
    As you can see $user was replaced with my username, but $password not.
    Anyone have information about this issue?
     
  2. cPanelRuth

    cPanelRuth Registered
    Staff Member

    Joined:
    Mar 21, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    That is correct. As of 11.40, that variable is no longer available; it was removed as a security feature. There are other ways to get where you're going on this, including creating a session on behalf of a cPanel user by a WHM user. Please feel free to contact integration@cpanel.net with questions about changes to your process.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice