fix: env vars handled via conf file, add: functional tests
This commit is contained in:
parent
3d08b14f11
commit
21c4330f16
39 changed files with 416 additions and 172 deletions
|
@ -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('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue