aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-05 21:31:30 +0900
committernsfisis <nsfisis@gmail.com>2024-03-05 21:31:30 +0900
commit9b32f59a34e19a3709af4d4a8cf50b047f1021e2 (patch)
treef580e3a34f8115fc53f19daa1c3f3d6ba03abc90 /services/app/src
parenta2f47eb106cd37d830272eeeb6ec5cc6cd417a14 (diff)
downloadphperkaigi-2024-albatross-9b32f59a34e19a3709af4d4a8cf50b047f1021e2.tar.gz
phperkaigi-2024-albatross-9b32f59a34e19a3709af4d4a8cf50b047f1021e2.tar.zst
phperkaigi-2024-albatross-9b32f59a34e19a3709af4d4a8cf50b047f1021e2.zip
do not show stdout/stderr to users
Diffstat (limited to 'services/app/src')
-rw-r--r--services/app/src/App.php2
-rw-r--r--services/app/src/Forms/LoginForm.php2
2 files changed, 1 insertions, 3 deletions
diff --git a/services/app/src/App.php b/services/app/src/App.php
index 7b31e74..9d6cc70 100644
--- a/services/app/src/App.php
+++ b/services/app/src/App.php
@@ -892,8 +892,6 @@ final class App
'label' => $ex->status->label(),
'show_loading_indicator' => $ex->status->showLoadingIndicator(),
],
- 'stdout' => $ex->stdout,
- 'stderr' => $ex->stderr,
], $testcaseExecutions),
])->withStatus(200);
}
diff --git a/services/app/src/Forms/LoginForm.php b/services/app/src/Forms/LoginForm.php
index 26f6ad1..4c69ad5 100644
--- a/services/app/src/Forms/LoginForm.php
+++ b/services/app/src/Forms/LoginForm.php
@@ -84,7 +84,7 @@ final class LoginForm extends FormBase
try {
$user_id = $this->userRepo->create(
$username,
- is_admin: true, // TODO
+ is_admin: false,
);
} catch (EntityValidationException $e) {
$this->state->setErrors($e->toFormErrors());