X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/c3be4f19f3d6465ff4c1110a1a7e7a0686f8dc37..eb5dc014179415a0e5476e986519ac96c36221f9:/lib/trackdb.c diff --git a/lib/trackdb.c b/lib/trackdb.c index c57dab2..2aed9a4 100644 --- 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. - * - * 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; @@ -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; - if(kvp_get(k, "confirmation")) - return 0; password = kvp_get(k, "password"); return password ? password : ""; }