From 48af6986e1ab1f91494f3318a8ec3a2c5df83637 Mon Sep 17 00:00:00 2001 From: axman Date: Thu, 26 Aug 2021 13:22:06 -0700 Subject: [PATCH] fix for adding new plugin --- Model/CoGrouperLite.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Model/CoGrouperLite.php b/Model/CoGrouperLite.php index bb07103..290ed73 100644 --- a/Model/CoGrouperLite.php +++ b/Model/CoGrouperLite.php @@ -55,22 +55,27 @@ class CoGrouperLite extends CoDashboardWidgetBackend { //Tried adding rule to each field to make alphaNumeric, but keeps throwing errors. will research. public $validate = array( 'co_dashboard_widget_id' => array( - 'rule' => 'numeric', + 'rule' => 'alphaNumeric', 'required' => true ), 'connUrl' => array( + 'rule' => array('custom', '/^https?:\/\/.*/'), 'required' => true ), 'connVer' => array( + 'rule' => array('minLength', 4), 'required' => true ), 'grouperUrl' => array( + 'rule' => array('custom', '/^https?:\/\/.*/'), 'required' => true ), 'connUser' => array( + 'rule' => array('minLength', 1), 'required' => true ), 'connPass' => array( + 'rule' => array('minLength', 1), 'required' => true ), );