Skip to content

Commit

Permalink
Fixed issue: Participant access key length could be set to 36 (and cr…
Browse files Browse the repository at this point in the history
…eating errors on registration) even though 35 is the maximum.
  • Loading branch information
c-schmitz committed Oct 13, 2020
1 parent f439954 commit c2bd269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public function rules()
array('googleanalyticsstyle', 'numerical', 'integerOnly'=>true, 'min'=>'0', 'max'=>'3', 'allowEmpty'=>true),
array('autonumber_start', 'numerical', 'integerOnly'=>true, 'allowEmpty'=>true),
array('tokenlength', 'default', 'value'=>15),
array('tokenlength', 'numerical', 'integerOnly'=>true, 'allowEmpty'=>false, 'min'=>'-1', 'max'=>'36'),
array('tokenlength', 'numerical', 'integerOnly'=>true, 'allowEmpty'=>false, 'min'=>'-1', 'max'=>'35'),
array('bouncetime', 'numerical', 'integerOnly'=>true, 'allowEmpty'=>true),
array('navigationdelay', 'numerical', 'integerOnly'=>true, 'allowEmpty'=>true),
array('template', 'filter', 'filter'=>array($this, 'filterTemplateSave')),
Expand Down

0 comments on commit c2bd269

Please sign in to comment.