update email const

This commit is contained in:
Matt Hill
2023-05-16 07:50:51 -06:00
parent 9c87b350d7
commit 9a23967a7a

View File

@@ -1,4 +1,5 @@
import { SmtpValue } from "../types"
import { email } from "../util/patterns"
import { Config, ConfigSpecOf } from "./builder/config"
import { Value } from "./builder/value"
import { Variants } from "./builder/variants"
@@ -27,6 +28,7 @@ export const customSmtp = Config.of<ConfigSpecOf<SmtpValue>, never, never>({
},
placeholder: "<name>test@example.com",
inputmode: "email",
patterns: [email],
}),
login: Value.text({
name: "Login",
@@ -37,6 +39,7 @@ export const customSmtp = Config.of<ConfigSpecOf<SmtpValue>, never, never>({
password: Value.text({
name: "Password",
required: false,
masked: true,
}),
tls: Value.toggle({
name: "Require Transport Security",
@@ -71,6 +74,7 @@ export const smtpConfig = Value.filteredUnion(
required: false,
placeholder: "<name>test@example.com",
inputmode: "email",
patterns: [email],
}),
}),
},