Skip to content

Commit

Permalink
fix for adding new plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
axel committed Aug 26, 2021
1 parent f6d86c8 commit 48af698
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Model/CoGrouperLite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
);
Expand Down

0 comments on commit 48af698

Please sign in to comment.