Duplicating user on different database on signup

Discussion in 'Customization & add-ons' started by handwriting, Dec 10, 2015.

  1. handwriting

    handwriting New Member

    Joined:
    Dec 1, 2010
    Messages:
    8
    Hi,

    We have ready different database with username and password
    It has already loging system,

    We are now using aMember, and we are trying to use autologin to our database

    1. How can we run custom php code on user signup? which file should we modify?
    we will write code insert same username and password to our database

    2. how can we autologin our system once user successfully signs in amember?

    Thanks in advance,
    Nurba
  2. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    In your code add API/Lite and you can simply grab the user information, if it is your own application you really would be better of using the aMember information directly.

    Otherwise you can write an integration plugin that will keep your database information updated but it seems like way too much work for little gain, oh yeah third option is you could also hook into the event system using the /amember/application/configs/site.php file

    I am sure the crew would do any of the above for you as a paid job, or you can wander over to JLogica and ask for us to do it (not free .. paid).
  3. handwriting

    handwriting New Member

    Joined:
    Dec 1, 2010
    Messages:
    8
    thanks for quick response,

    when deleting user from admin, we would like to delete user from our database also
    can you give filename and line of code to be modified?

    thanks
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,682

Share This Page