Support » Plugin: Front-End Only Users » Email Registration Bug

Viewing 2 replies - 1 through 2 (of 2 total)
  • Also the EWD_FEUP_Send_Email function in Prepare_Data_For_Insertion.php script needs some tweeking…

    Currently it replaces the [password] shortcode with the encrypted SHA1 MD5 password (not very helpful to the user). To get around this I passed in the $_POST variable as a 3rd parameter to the function and changed line 94 from:

    $Message_Body = str_replace("[password]", $User_Fields['Password'], $Message_Body);
    to
    $Message_Body = str_replace("[password]", $_POST['User_Password'], $Message_Body);

    I also changed line 137 to:
    $Mail_Success = mail($User_Email, $Email_Subject, $Message_Body, $headers);
    as it should be (currently the first 2 arguments to mail are static…)

    Plugin Author Rustaurius

    (@rustaurius)

    Awesome, thanks! We’ll add those changes in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email Registration Bug’ is closed to new replies.