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.

Enable account login notifications by default

Discussion in 'Security' started by FusedT, Aug 9, 2017.

  1. FusedT

    FusedT Registered

    Joined:
    Aug 9, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    TN
    cPanel Access Level:
    Root Administrator
    We're looking for a way to enable the following by default (that is, for present and newly created users):
    notify_account_authn_link=1
    notify_account_login=1
    notify_contact_address_change=1
    notify_password_change=1

    How do we do that? What's the workaround?
    Changing them one by one is not a wise decision.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    There's no global option to enable this option by default. I encourage you to open a feature request if this is something you'd like to see added to the product:

    Submit A Feature Request

    In the meantime, the following cPanel API 2 function is available if you want to enable this option from the command line for each user (you could setup a custom bash script that loops it for all users on the server):

    cPanel API 2 Functions - CustInfo::savecontactinfo - Software Development Kit - cPanel Documentation

    Additionally, you could create a custom bash script that uses the above cPanel API 2 function, and then setup a post Accounts::Create hook that automatically runs the custom bash script after the account creation process:

    Guide to Standardized Hooks - Software Development Kit - cPanel Documentation
    Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation

    Thank you.
     
Loading...

Share This Page