feat(auth): add optional domain parameter to send OTP code for site personalization
This commit is contained in:
+3
-1
@@ -14,13 +14,15 @@ Send OTP code to mobile number.
|
||||
### Request Body
|
||||
```json
|
||||
{
|
||||
"mobile": "09123456789"
|
||||
"mobile": "09123456789",
|
||||
"domain": "yasuj-nobat.ir"
|
||||
}
|
||||
```
|
||||
|
||||
| Field | Type | Required | Validation |
|
||||
|-------|------|----------|------------|
|
||||
| `mobile` | string | ✅ | Format: `09XXXXXXXXX` (11 digits) |
|
||||
| `domain` | string | ⬜ | دامنهی شهرِ درخواستکننده (multi-domain). اگر ارسال شود، `site_name` شهرِ متناظر در جدول `cities` پیدا شده و بهعنوان متغیر `{site}` در متن پیامک OTP قابل استفاده است (شخصیسازی متن). اگر نیامد یا شهر پیدا نشد → مقدار پیشفرض «کلینیک پرو». حداکثر ۲۵۳ کاراکتر. |
|
||||
|
||||
### Response `200`
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user