bool log_attempt(const char *uid, bool success);