]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add common_password
authorEvan Prodromou <evan@prodromou.name>
Mon, 19 May 2008 13:18:08 +0000 (09:18 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 19 May 2008 13:18:08 +0000 (09:18 -0400)
darcs-hash:20080519131808-84dde-af9d0bf03a963f7b0bdaed3b973a38998f9e806e.gz

doc/TODO
lib/common.php

index 4fd330461a0e683886c9db913d566a9091dd63e1..293576622d1ef8cf7bc39f0514da7eb9dd47ed25 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -26,7 +26,7 @@
 + configuration system ($config)
 + release 0.1
 - doc action
 + 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
 - default avatar
 - default HTML type
 - set Content-Type
index 7379026f408bfe49ab8d58023c746bba6adc1205..38efe34033d36347726b7e0a257843c3c1a1cb74 100644 (file)
@@ -179,6 +179,14 @@ function common_input($id, $label, $value=NULL) {
        common_element('input', $attrs);
 }
 
        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) {
 # salted, hashed passwords are stored in the DB
 
 function common_munge_password($id, $password) {