diff options
Diffstat (limited to 'lib/common.php')
-rw-r--r-- | lib/common.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php index 7379026f4..38efe3403 100644 --- a/lib/common.php +++ b/lib/common.php @@ -179,6 +179,14 @@ function common_input($id, $label, $value=NULL) { common_element('input', $attrs); } +function common_password($id, $label) { + common_element('label', array('for' => $id), $label); + $attrs = array('name' => $id, + 'type' => 'password', + 'id' => $id); + common_element('input', $attrs); +} + # salted, hashed passwords are stored in the DB function common_munge_password($id, $password) { |