Skip to content

Commit 0ed7ce6

Browse files
committed
feat: add sensitive Declarative setting example
1 parent 193606b commit 0ed7ce6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ async def lifespan(app: FastAPI):
183183
default="foo",
184184
options={_("First radio"): "foo", _("Second radio"): "bar", _("Third radio"): "baz"},
185185
),
186+
SettingsField(
187+
id="test_ex_app_sensitive_field",
188+
title=_("Password"),
189+
description=_("Set some secure value setting with encryption"),
190+
type=SettingsFieldType.PASSWORD,
191+
default="",
192+
placeholder=_("Set secure value"),
193+
sensitive=True,
194+
),
186195
],
187196
)
188197

0 commit comments

Comments
 (0)