chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rights now apply to commands; docs catch up a bit
[disorder]
/
lib
/
trackdb.c
diff --git
a/lib/trackdb.c
b/lib/trackdb.c
index c57dab21cf0bc9753d4ee112c5dad4b053ae5506..2aed9a46c5ee8dd352f3a159146401a2f2588515 100644
(file)
--- a/
lib/trackdb.c
+++ b/
lib/trackdb.c
@@
-2514,9
+2514,6
@@
void trackdb_create_root(void) {
* Only works if running as a user that can read the database!
*
* If the user exists but has no password, "" is returned.
* Only works if running as a user that can read the database!
*
* If the user exists but has no password, "" is returned.
- *
- * If the user was created with 'register' and has not yet been confirmed then
- * NULL is still returned.
*/
const char *trackdb_get_password(const char *user) {
int e;
*/
const char *trackdb_get_password(const char *user) {
int e;
@@
-2526,8
+2523,6
@@
const char *trackdb_get_password(const char *user) {
WITH_TRANSACTION(trackdb_getdata(trackdb_usersdb, user, &k, tid));
if(e)
return 0;
WITH_TRANSACTION(trackdb_getdata(trackdb_usersdb, user, &k, tid));
if(e)
return 0;
- if(kvp_get(k, "confirmation"))
- return 0;
password = kvp_get(k, "password");
return password ? password : "";
}
password = kvp_get(k, "password");
return password ? password : "";
}