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.

Run script when user changes email password

Discussion in 'cPanel Developers' started by Cristian Gheorghe, Apr 21, 2015.

  1. Cristian Gheorghe

    Cristian Gheorghe Registered

    Joined:
    Apr 21, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bucharest
    cPanel Access Level:
    Root Administrator
    Hello,

    I wander if anybody can help me with this. I need to run an bash script when an user changes his/hers email account password. Did anybody has any idea on how to do this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,115
    Likes Received:
    1,290
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can use standardized hooks to have a particular script run after a specific action. This is documented here:

    Standardized Hooks

    Thank you.
     
  3. Cristian Gheorghe

    Cristian Gheorghe Registered

    Joined:
    Apr 21, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bucharest
    cPanel Access Level:
    Root Administrator
    Hi,

    Thank you for the link, but I'm an beginner when it comes to programming. Is there any example available in PHP?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,115
    Likes Received:
    1,290
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. Cristian Gheorghe

    Cristian Gheorghe Registered

    Joined:
    Apr 21, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bucharest
    cPanel Access Level:
    Root Administrator
    Hi,

    It seems that one of my colleagues managed to create something in PHP and it is currently in testing. Thanks for the help.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,115
    Likes Received:
    1,290
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see the document provided was helpful. Thank you for updating us with the outcome.
     
Loading...

Share This Page