Skip to content
Snippets Groups Projects
Commit 3ba0b387 authored by Phil Höfer's avatar Phil Höfer
Browse files

Update CheckPassword.php

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