plugin hook for change of password in member.php?

Discussion in 'Templates customization' started by andyb, Jul 11, 2010.

  1. andyb

    andyb Member

    Joined:
    Jul 10, 2010
    Messages:
    41
    I am creating a new user in my site when a user has signed up to my product so I can use a single signon method. That is working when a user logs in to amember, I can use their session variables to log them on to my site automatically.

    I need to know if there is a hook that I can add to my site.inc.php so I can modify the users details on my site when they change their password in the amember member.php page?
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
  3. andyb

    andyb Member

    Joined:
    Jul 10, 2010
    Messages:
    41
    thanks Skippy, I have been going over the wiki for two days and spent a good deal of time doing some testing with site.inc.php to integrate it with wordpress 3.0 multi site. (I even corrected a missing close bracket on one of the examples!) :)

    function clash
    I am using wordpress functions in my site.inc.php file by including wp-config.php from wordpress but there is a function clash on validate_email() in /amember/admin/config.inc.php on line 831 which prevents me from seeing anything in the amember admin pages for setup/configuration.

    I just made a check for amember/admin/ or admin/users.php before including the file and that seems to keep things running.

    Resolution
    I no longer need to check on a password change, I have set it up so someone can't register to amember with an existing username or email address from the wordpress side by hooking into validate_signup_form and setting amember to accept only unique emails.

    Once that is done, I coded an auto login function that checks for a users login name from the amember session vars and use that to log them in to wordpress automagically.

Share This Page