Brand OTP SMS with business name and support local SMS proxy.

Append tenant Farsi name to verification SMS, allow optional domain on send-otp, and add SMS_PROXY_* for local delivery via production. Also include websites SSL sync agent/API wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-08 23:29:56 +03:30
co-authored by Cursor
parent 77f3cb2a67
commit 8f05ee2b58
14 changed files with 385 additions and 14 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
import { IsString, Matches } from 'class-validator';
import { IsOptional, IsString, Matches, MaxLength } from 'class-validator';
export class SendOtpDto {
@IsString()
@@ -6,4 +6,10 @@ export class SendOtpDto {
message: 'cellNumber must be in E.164 format (e.g. +989121234567)',
})
cellNumber!: string;
/** Tenant host/apex (e.g. sanihome.ir or business.sanihome.ir) — used to brand OTP SMS. */
@IsOptional()
@IsString()
@MaxLength(253)
domain?: string;
}