fix: env vars handled via conf file, add: functional tests

This commit is contained in:
Michael 2024-08-17 18:06:06 +02:00
parent 3d08b14f11
commit 21c4330f16
39 changed files with 416 additions and 172 deletions

View file

@ -9,12 +9,12 @@ class CheckSimpleAuthController extends Controller
{
public function check(Request $req) {
if (
getenv('GITEA_PARTNER_ORGANIZATION') === $req->input('organization')
config('app.gitea_partner_organization') === $req->input('organization')
&&
getenv('APP_PASSWORD') === $req->input('password')
config('app.app_password') === $req->input('password')
) {
return view('backend', [
'token' => getenv('GITEA_TOKEN')
'token' => config('app.gitea_token')
]);
} else {
return redirect('/');