add common_password
darcs-hash:20080519131808-84dde-af9d0bf03a963f7b0bdaed3b973a38998f9e806e.gz
This commit is contained in:
parent
3a2d17f9f6
commit
cb32dad17b
2
doc/TODO
2
doc/TODO
|
@ -26,7 +26,7 @@
|
||||||
+ configuration system ($config)
|
+ configuration system ($config)
|
||||||
+ release 0.1
|
+ release 0.1
|
||||||
- doc action
|
- doc action
|
||||||
- default to doc, title = main
|
- default to public stream
|
||||||
- default avatar
|
- default avatar
|
||||||
- default HTML type
|
- default HTML type
|
||||||
- set Content-Type
|
- set Content-Type
|
||||||
|
|
|
@ -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
|
# salted, hashed passwords are stored in the DB
|
||||||
|
|
||||||
function common_munge_password($id, $password) {
|
function common_munge_password($id, $password) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user