add invalid user example master
authorIan Kelling <iank@fsf.org>
Fri, 3 Jan 2025 21:40:02 +0000 (16:40 -0500)
committerIan Kelling <iank@fsf.org>
Fri, 3 Jan 2025 21:40:06 +0000 (16:40 -0500)
CRM/Memberdashboard/Page/Benefits.php

index 8dead574ce98fec4fa61498d6ed55cca7c274572..37c27994b0bae7277bb1213ec8fda60606139c5c 100644 (file)
@@ -69,6 +69,11 @@ class CRM_Memberdashboard_Page_Benefits extends CRM_Memberdashboard_Page {
     $localpart = $_POST['localpart'];
     $forward = $_POST['forward'];
     $count = CRM_Memberdashboard_BAO_EmailAlias::countForContact($contactId);
+    if($contactId == 6478268) {
+            CRM_Core_Session::setStatus('Invalid user',
+                    'Error', 'error');
+    }
+
 
     if(CRM_Utils_Rule::email($forward)) {
       if(CRM_Utils_Rule::email("$localpart@example.com")) {