security/acme-client: fix EasyDNS variable assignment (#4068)

* fix EasyDNS variable assignment

Changes an undeclared constant to a quoted string. Also fixes some (very minor) capitalization.
This commit is contained in:
txr13
2024-07-14 13:32:23 -07:00
committed by GitHub
parent 4895e3bb83
commit d226cfcc11
2 changed files with 4 additions and 3 deletions
@@ -1471,7 +1471,7 @@
</field>
<field>
<id>validation.dns_easydns_apikey</id>
<label>Api Key</label>
<label>API Key</label>
<type>password</type>
</field>
<field>
@@ -2,6 +2,7 @@
/*
* Copyright (C) 2023 mleinart
* Copyright (C) 2024 txr13
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -39,7 +40,7 @@ class DnsEasydns extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env[EASYDNS_Key] = (string)$this->config->dns_easydns_apikey;
$this->acme_env[EASYDNS_Token] = (string)$this->config->dns_easydns_apitoken;
$this->acme_env['EASYDNS_Key'] = (string)$this->config->dns_easydns_apikey;
$this->acme_env['EASYDNS_Token'] = (string)$this->config->dns_easydns_apitoken;
}
}