encrypts integration secrets

This commit is contained in:
Christian Beutel
2025-02-08 11:48:21 +01:00
parent d01ca30932
commit d790f06216
20 changed files with 405 additions and 72 deletions

View File

@@ -21,14 +21,11 @@
let modal: Modal;
export function openModal() {
errors.set({})
errors.set({});
modal.openModal();
}
const {
form,
errors,
} = createForm({
const { form, errors } = createForm({
initialValues: {
clientId: integration?.strava?.clientId ?? "",
clientSecret: integration?.strava?.clientSecret ?? "",
@@ -62,7 +59,7 @@
></TextField>
<TextField
label="Client Secret"
placeholder="de8b3789bd7116d..."
placeholder={integration?.strava ? `(${$_("unchanged")})` : "de8b3789bd7116d..."}
name="clientSecret"
type="password"
error={$errors.clientSecret}