summaryrefslogtreecommitdiffstatshomepage
path: root/filters
diff options
context:
space:
mode:
Diffstat (limited to 'filters')
-rw-r--r--filters/simple-authentication.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/filters/simple-authentication.lua b/filters/simple-authentication.lua
index 5c4f074..9291302 100644
--- a/filters/simple-authentication.lua
+++ b/filters/simple-authentication.lua
@@ -122,12 +122,7 @@ function filter_open(...)
cgit["repo"] = select(9, ...)
cgit["page"] = select(10, ...)
cgit["url"] = select(11, ...)
-
- cgit["login"] = ""
- for _ in cgit["url"]:gfind("/") do
- cgit["login"] = cgit["login"] .. "../"
- end
- cgit["login"] = cgit["login"] .. "?p=login"
+ cgit["login"] = select(12, ...)
end