/
/
/
360
user: Update username cache in user_find_by_username if no users
jcs made amendment
360
about 1 year ago
---
user.c Wed Mar 1 19:44:21 2023
+++
user.c Fri Mar 3 13:58:47 2023
@@ -133,6 +133,9 @@ user_find_by_username(const char *username)
if (len > sizeof(suser.username))
return NULL;
+ if (db->nusers == 0)
+ user_cache_usernames();
+
for (n = 0; n < db->nusers; n++) {
muser = &db->username_cache[n];