Increase SMTP password max length from 70 to 256 (#1579)

This commit is contained in:
Konsti Wohlwend 2026-06-11 09:53:18 -07:00 committed by GitHub
parent 59daf1321c
commit 4608564fc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -612,7 +612,10 @@ export const emailHostSchema = yupString().meta({ openapiField: { description: '
export const emailPortSchema = yupNumber().min(0).max(65535).meta({ openapiField: { description: 'Email port. Needs to be specified when using type="standard"', exampleValue: 587 } });
export const emailUsernameSchema = yupString().meta({ openapiField: { description: 'Email username. Needs to be specified when using type="standard"', exampleValue: 'smtp-email' } });
export const emailSenderEmailSchema = emailSchema.meta({ openapiField: { description: 'Email sender email. Needs to be specified when using type="standard"', exampleValue: 'example@your-domain.com' } });
export const emailPasswordSchema = passwordSchema.meta({ openapiField: { description: 'Email password. Needs to be specified when using type="standard"', exampleValue: 'your-email-password' } });
// SMTP credentials are stored encrypted (not bcrypt-hashed like user passwords), so they don't
// need the 70-char bcrypt limit from passwordSchema. Some providers (e.g. ZeptoMail) generate
// passwords well over 100 chars.
export const emailPasswordSchema = yupString().max(256).meta({ openapiField: { description: 'Email password. Needs to be specified when using type="standard"', exampleValue: 'your-email-password' } });
// Project domain config
export const handlerPathSchema = yupString().test('is-handler-path', 'Handler path must start with /', (value) => value?.startsWith('/')).meta({ openapiField: { description: 'Handler path. If you did not setup a custom handler path, it should be "/handler" by default. It needs to start with /', exampleValue: '/handler' } });
// Project email theme config