The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Generate Mailman otp

Discussion in 'cPanel Developers' started by Stephen Wilkey, May 28, 2016.

Tags:
  1. Stephen Wilkey

    Stephen Wilkey Registered

    Joined:
    May 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Hi,

    I'm developing an in house application using the UAPI. I've used this command to generate a mailman OTP:UAPI Functions - Email::generate_mailman_otp - Software Development Kit - cPanel Documentation

    However, neither the cpanel api documentation or the mailman documentation tells me how I can use that OTP to log in to mailman. Can you please advise the URL we should use to enter that OTP? Is it possible to pass the OTP as a parameter to the URL or does it have to be manually typed in? If it is of interest or relevant i am using php.

    Thanks,
    Stephen
    ps. as the forum was not taking registrations earlier today due to a fault in the captcha, i've also submitted this ticket cPanel Customer Portal
     
    #1 Stephen Wilkey, May 28, 2016
    Last edited by a moderator: May 28, 2016
  2. Stephen Wilkey

    Stephen Wilkey Registered

    Joined:
    May 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Cpanel support advised that the OTP can be submitted in the administrator password field per these instructions:
    Does anyone know if it is possible to do programmatically, eg. a GET or a POST when calling that url or can it only be done interactively by the user?
     
    #2 Stephen Wilkey, May 28, 2016
    Last edited by a moderator: May 29, 2016
  3. Stephen Wilkey

    Stephen Wilkey Registered

    Joined:
    May 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    cpanel support recommended just posting the adminpw field directly to the page as the page does a self post when you click the submit button on the password and therefore it must be able to process that. That worked. As long as mailman don't change the code of that page that is a reasonable way to programmatically submit the OTP.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - Generate Mailman otp
  1. sparek-3
    Replies:
    2
    Views:
    395

Share This Page