projects
/
org.fsf.memberdashboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7002385
)
add invalid user example
master
author
Ian Kelling
<iank@fsf.org>
Fri, 3 Jan 2025 21:40:02 +0000
(16:40 -0500)
committer
Ian Kelling
<iank@fsf.org>
Fri, 3 Jan 2025 21:40:06 +0000
(16:40 -0500)
CRM/Memberdashboard/Page/Benefits.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Memberdashboard/Page/Benefits.php
b/CRM/Memberdashboard/Page/Benefits.php
index 8dead574ce98fec4fa61498d6ed55cca7c274572..37c27994b0bae7277bb1213ec8fda60606139c5c 100644
(file)
--- a/
CRM/Memberdashboard/Page/Benefits.php
+++ b/
CRM/Memberdashboard/Page/Benefits.php
@@
-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")) {