concrete/src/Mail/Importer/MailImporter.php
public function validate()
    {
        if (!$this->validationHash) {
            return false;
        }
        $db = Database::connection();
        $row = $db->GetRow("select * from MailValidationHashes where mHash = ? order by mDateGenerated desc limit 1", $this->validationHash);
        if ($row['mvhID'] > 0) {
            // Can't do this even though it's a good idea
            //if ($row['email'] != $this->sender) {
            //	return false;
            //} else {
                return $row['mDateRedeemed'] == 0;
            //}
        }
    }
public function validate()
    {
        if (!$this->validationHash) {
            return false;
        }
        $db = Database::connection();
        $row = $db->GetRow("select * from MailValidationHashes where mHash = ? order by mDateGenerated desc limit 1", $this->validationHash);
        if ($row['mvhID'] > 0) {
            // Can't do this even though it's a good idea
            //if ($row['email'] != $this->sender) {
            //	return false;
            //} else {
                return $row['mDateRedeemed'] == 0;
            //}
        }
    }
public function validate ( ) { if ( ! $ this -> validationHash ) { return false ; } $ db = Database :: connection ( ) ; $ row = $ db -> GetRow ( "select * from MailValidationHashes where mHash = ? order by mDateGenerated desc limit 1" , $ this -> validationHash ) ; if ( $ row [ 'mvhID' ] > 0 ) { // Can't do this even though it's a good idea //if ($row['email'] != $this->sender) { //	return false; //} else { return $ row [ 'mDateRedeemed' ] == 0 ; //} } }
Validates the email message - checks the validation hash found in the body with one in the database. Checks the from address as well.
Validates the email message - checks the validation hash found in the body with one in the database . Checks the from address as well .