mask deSEC password behind details reveal; add hex length comment

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/4e99bcbc-4f32-45e6-af08-5026ce4b1f45

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-24 21:49:26 +00:00
committed by GitHub
parent cb48bc5db0
commit 7281c9b7c8
2 changed files with 3 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ readonly class DesecController {
if (!$accountAlreadyRegistered) {
// Register an account at deSEC and obtain an API token.
// The password is stored so the user can log in to desec.io directly if needed.
// 24 random bytes encoded as hex produce a 48-character password.
$password = bin2hex(random_bytes(24));
$token = $this->registerDesecAccount($email, $password);