mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-19 21:00:40 +08:00
Increase SMTP password max length from 70 to 256 (#1579)
This commit is contained in:
parent
59daf1321c
commit
4608564fc3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user