Commit 3ba0b387 authored by Phil Höfer's avatar Phil Höfer
Browse files

Update CheckPassword.php

parent 47a44fd6
......@@ -25,6 +25,12 @@ class CheckPassword
} else {
$targetUrl = str_replace("<<SLASH>>", "/", $request->route('url'));
$targetUrl = str_rot13(base64_decode($targetUrl));
// FIXME temporary check for ban list
if (md5($targetUrl) === "d1524b8dd3f1bee9ba24fe775339ba40") {
return abort(403);
}
// Check Password:
$checkPw = md5(env('PROXY_PASSWORD') . $targetUrl);
$password = $request->route('password');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment