Add SEO sitemap/robots + real SMS OTP (Kavenegar, admin-configured)
CI/CD / CI · dotnet build (push) Successful in 31s
CI/CD / Deploy · hamkadr (push) Successful in 56s

- /sitemap.xml (static pages + open shifts + fresh jobs, respecting expiry) + /robots.txt (blocks /Admin,/Employer); base URL from forwarded request → https://hamkadr.ir in prod
- ISmsSender + KavenegarSmsSender (verify/lookup template, sms/send fallback); SMS settings (enabled/apikey/template/sender) in /Admin/Settings; OtpService.IssueAsync sends SMS and stops revealing the code when enabled (dev still shows it); migration

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-04 10:27:21 +03:30
parent 6d2ad6f87e
commit 17d38431bf
12 changed files with 1152 additions and 11 deletions
@@ -89,6 +89,21 @@ namespace JobsMedical.Web.Migrations
b.Property<int>("Mode")
.HasColumnType("integer");
b.Property<string>("SmsApiKey")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property<bool>("SmsEnabled")
.HasColumnType("boolean");
b.Property<string>("SmsSender")
.HasMaxLength(30)
.HasColumnType("character varying(30)");
b.Property<string>("SmsTemplate")
.HasMaxLength(100)
.HasColumnType("character varying(100)");
b.Property<string>("TelegramChannels")
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");