mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 14:19:33 +00:00
Use a special form type for api key settings, that hide the api key by default as dots
This commit is contained in:
parent
a75a60fecd
commit
f48791e961
16 changed files with 191 additions and 12 deletions
|
|
@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Settings\MiscSettings;
|
||||
|
||||
use App\Form\Type\APIKeyType;
|
||||
use App\Settings\SettingsIcon;
|
||||
use Jbtronics\SettingsBundle\Metadata\EnvVarMode;
|
||||
use Jbtronics\SettingsBundle\Settings\Settings;
|
||||
|
|
@ -35,7 +36,8 @@ class ExchangeRateSettings
|
|||
{
|
||||
#[SettingsParameter(label: new TM("settings.misc.exchange_rate.fixer_api_key"),
|
||||
description: new TM("settings.misc.exchange_rate.fixer_api_key.help"),
|
||||
formType: APIKeyType::class,
|
||||
envVar: "FIXER_API_KEY", envVarMode: EnvVarMode::OVERWRITE,
|
||||
)]
|
||||
public ?string $fixerApiKey = null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue