From: Evan Prodromou Date: Mon, 19 May 2008 13:18:08 +0000 (-0400) Subject: add common_password X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb32dad17b1da425bc315b075db2d85ba0808e36;p=quix0rs-gnu-social.git add common_password darcs-hash:20080519131808-84dde-af9d0bf03a963f7b0bdaed3b973a38998f9e806e.gz --- diff --git a/doc/TODO b/doc/TODO index 4fd330461a..293576622d 100644 --- a/doc/TODO +++ b/doc/TODO @@ -26,7 +26,7 @@ + configuration system ($config) + release 0.1 - doc action -- default to doc, title = main +- default to public stream - default avatar - default HTML type - set Content-Type diff --git a/lib/common.php b/lib/common.php index 7379026f40..38efe34033 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) {