Skip to content

Commit

Permalink
Merge pull request #12589 from seamuslee001/password_size
Browse files Browse the repository at this point in the history
dev/core#291 Allow for field size to be set for password fields
  • Loading branch information
eileenmcnaughton authored Jul 29, 2018
2 parents 9ebfb6f + a7e59a4 commit aa7142d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,7 @@ public function addField($name, $props = array(), $required = FALSE, $legacyDate
return $this->addEntityRef($name, $label, $props, $required);

case 'Password':
$props['size'] = isset($props['size']) ? $props['size'] : 60;
return $this->add('password', $name, $label, $props, $required);

// Check datatypes of fields
Expand Down

0 comments on commit aa7142d

Please sign in to comment.