summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-19 09:18:08 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-19 09:18:08 -0400
commitcb32dad17b1da425bc315b075db2d85ba0808e36 (patch)
tree5b810efb4f60473cf48a317948b02f761c3211e3 /lib/common.php
parent3a2d17f9f64ef7b48f2c32e144c1eb5e000f7313 (diff)
add common_password
darcs-hash:20080519131808-84dde-af9d0bf03a963f7b0bdaed3b973a38998f9e806e.gz
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php8
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) {