diff --git a/index.html b/index.html
index f9700940..4a89b5c3 100644
--- a/index.html
+++ b/index.html
@@ -1237,13 +1237,6 @@
-
-
- Commands:
- • GC: Comprehensive cleanup of internal caches and resources
- • Quick GC: Lightweight cleanup that runs automatically every ~15 minutes
- • Invalidate: Forces FUSE to release cached file information (use for debugging)
-
diff --git a/src/mergerfs_webui.cpp b/src/mergerfs_webui.cpp
index 00d66bdb..5db74ca9 100644
--- a/src/mergerfs_webui.cpp
+++ b/src/mergerfs_webui.cpp
@@ -412,6 +412,30 @@ _execute_command(const httplib::Request &req_,
}
}
+static
+bool
+_check_auth(const httplib::Request &req_)
+{
+ if (g_password.empty())
+ {
+ return true;
+ }
+
+ std::string auth_header = req_.get_header_value("Authorization");
+ if (auth_header.empty())
+ {
+ return false;
+ }
+
+ if (auth_header.substr(0, 7) == "Bearer ")
+ {
+ std::string token = auth_header.substr(7);
+ return _validate_password(token);
+ }
+
+ return false;
+}
+
static
void
_post_kvs_key(const httplib::Request &req_,
@@ -518,30 +542,6 @@ _post_auth_verify(const httplib::Request &req_,
}
}
-static
-bool
-_check_auth(const httplib::Request &req_)
-{
- if (g_password.empty())
- {
- return true;
- }
-
- std::string auth_header = req_.get_header_value("Authorization");
- if (auth_header.empty())
- {
- return false;
- }
-
- if (auth_header.substr(0, 7) == "Bearer ")
- {
- std::string token = auth_header.substr(7);
- return _validate_password(token);
- }
-
- return false;
-}
-
int
mergerfs::webui::main(const int argc_,
char **argv_)