diff options
Diffstat (limited to 'filters')
-rw-r--r-- | filters/simple-authentication.lua | 7 |
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(...) | |||
122 | cgit["repo"] = select(9, ...) | 122 | cgit["repo"] = select(9, ...) |
123 | cgit["page"] = select(10, ...) | 123 | cgit["page"] = select(10, ...) |
124 | cgit["url"] = select(11, ...) | 124 | cgit["url"] = select(11, ...) |
125 | 125 | cgit["login"] = select(12, ...) | |
126 | cgit["login"] = "" | ||
127 | for _ in cgit["url"]:gfind("/") do | ||
128 | cgit["login"] = cgit["login"] .. "../" | ||
129 | end | ||
130 | cgit["login"] = cgit["login"] .. "?p=login" | ||
131 | 126 | ||
132 | end | 127 | end |
133 | 128 | ||