Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

API CHANGE Removed Member_SignupEmail, use your own custom sign up Em…

…ail class instead.
  • Loading branch information...
commit fd0ec1c47fdcf13a34e621c4c31103406532600b 1 parent a79032c
@halkyon halkyon authored
Showing with 0 additions and 50 deletions.
  1. +0 −50 security/Member.php
View
50 security/Member.php
@@ -479,9 +479,6 @@ static function member_from_autologinhash($RAW_hash, $login = false) {
*/
function sendInfo($type = 'signup', $data = null) {
switch($type) {
- case "signup":
- $e = Member_SignupEmail::create();
- break;
case "changePassword":
$e = Member_ChangePasswordEmail::create();
break;
@@ -1484,53 +1481,6 @@ function dosave($data, $form) {
}
}
-/**
- * Class used as template to send an email to new members
- * @package framework
- * @subpackage security
- */
-class Member_SignupEmail extends Email {
- protected $from = ''; // setting a blank from address uses the site's default administrator email
- protected $subject = '';
- protected $body = '';
-
- function __construct() {
- parent::__construct();
- $this->subject = _t('Member.EMAILSIGNUPSUBJECT', "Thanks for signing up");
- $this->body = '
- <h1>' . _t('Member.GREETING','Welcome') . ', $FirstName.</h1>
- <p>' . _t('Member.EMAILSIGNUPINTRO1','Thanks for signing up to become a new member, your details are listed below for future reference.') . '</p>
-
- <p>' . _t('Member.EMAILSIGNUPINTRO2','You can login to the website using the credentials listed below') . ':
- <ul>
- <li><strong>' . _t('Member.EMAIL') . '</strong>$Email</li>
- <li><strong>' . _t('Member.PASSWORD') . ':</strong>$Password</li>
- </ul>
- </p>
-
- <h3>' . _t('Member.CONTACTINFO','Contact Information') . '</h3>
- <ul>
- <li><strong>' . _t('Member.NAME','Name') . ':</strong> $FirstName $Surname</li>
- <% if Phone %>
- <li><strong>' . _t('Member.PHONE','Phone') . ':</strong> $Phone</li>
- <% end_if %>
-
- <% if Mobile %>
- <li><strong>' . _t('Member.MOBILE','Mobile') . ':</strong> $Mobile</li>
- <% end_if %>
-
- <li><strong>' . _t('Member.ADDRESS','Address') . ':</strong>
- <br/>
- $Number $Street $StreetType<br/>
- $Suburb<br/>
- $City $Postcode
- </li>
-
- </ul>
- ';
- }
-}
-
/**
Please sign in to comment.
Something went wrong with that request. Please try again.