✨ New Features
Configurable OTP Email Branding (#809)
The OTP login email is now fully customizable per deployment, all via the OTP plugin's admin settings page.
- Logo URL — display your own logo at the top of the email
- Logo Width (px) — control the rendered logo size (20–600 px)
- Logo Border Thickness & Color — optional border around the logo with a color picker (defaults: thickness 0, color
#ffffff); when both are set, the logo gets a matchingborder-radiusto align with the sign-in button - Login URL — when set, renders a styled Sign in to {site name} button under the OTP code in the email and as a CTA link in the plain-text version
- Login Button Text — override the default "Sign in to {site name}" with custom copy
All new settings are optional; defaults preserve the previous email rendering. Color values are sanitized server-side before being inlined into the email's CSS to prevent style injection.
The plugin's settings page also gets a live email preview that reflects every change immediately.
Installation
npm create sonicjs@latest my-appOr update an existing project:
npm install @sonicjs-cms/core@2.18.0Full changelog: v2.17.2...v2.18.0