Marijn, I made some minor modifications to the VerifyEmailRole.php for the website I am currently building. Maybe you might find them useful and add them to the module:
After line 25:
/**
* Additional columns in Member Table displayed in the CMS so that you can easily see whether members email address has been verified etc.
*/
function IsVerified() {
return ($this->owner->Verified)?'Yes':'No';
}
function MemberDateJoined() {
return $this->owner->dbObject('Created')->Nice();
}
function MemberDateAgoJoined() {
return $this->owner->dbObject('Created')->Ago();
}
function updateSummaryFields(Fieldset &$fields) {
$fields['IsVerified'] = 'EmailIsVerified';
$fields['MemberDateJoined'] = 'DateMemberJoined';
$fields['MemberDateAgoJoined'] = 'HowLongAgoMemberJoined';
}
modified line 37 to get error message to appear in error box above login form.
_t ('VerifyEmailRole.ERRORSENTEMAILAGAIN', 'if you would like us to sent the verification email again.'),'bad'
added after line 66 to get error message to appear in error box above login form.
Session::set("Security.Message.type", 'bad');
modified line 198 to 199 to get error message to appear in error box above email verification link resend form when no value is entered because previously I got the white screen of death when I didn't enter a value.
} else {
// Adds error message if nothing is entered into Email field.
$FormInfo = array(
"MemberLoginForm_verifyEmailSent" => array(
"formError" => array(
"message" => "Please enter an email address to have the email verification link resent.", "type" => "bad"
)
)
);
Session::set("FormInfo", array_merge(Session::get("FormInfo"), $FormInfo ));
Director::redirect(VerifyEmail_Controller::$ModuleURLSegment . '/verifyemail/');
}
Thanks,
Jim