diff --git a/php/src/Controller/DesecController.php b/php/src/Controller/DesecController.php index 5768f25c..e08d0d4a 100644 --- a/php/src/Controller/DesecController.php +++ b/php/src/Controller/DesecController.php @@ -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); diff --git a/php/templates/containers.twig b/php/templates/containers.twig index a6808bda..201b1dda 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -137,7 +137,7 @@

deSEC offers free dynamic DNS subdomains under dedyn.io. AIO can register an account and a subdomain for you automatically. The caddy community container will be enabled as a reverse proxy, the dnsmasq container will be enabled for local DNS resolution, and the mastercontainer will keep your DNS record up to date automatically.

{% if desec_account_registered %}

Your deSEC account ({{ desec_email }}) was registered successfully but the domain could not be registered. Please enter a desired subdomain slug (the part before .dedyn.io) and try again, or leave it blank for a random one.

-

Your deSEC login credentials (for desec.io): Email: {{ desec_email }}, Password: {{ desec_password }}. Please save these in a safe place.

+

Your deSEC login credentials (for desec.io): Email: {{ desec_email }}.

Reveal deSEC password{{ desec_password }}
. Please save these in a safe place.

@@ -403,7 +403,7 @@

deSEC account credentials

Your domain {{ domain }} is managed via deSEC. Below are your deSEC account credentials. You can use them to log in at desec.io to manage your domain directly.

Email: {{ desec_email }}

-

Password: {{ desec_password }}

+

Password:

Reveal deSEC password{{ desec_password }}

Please save these credentials in a safe place.

{% endif %}