Proje: Okul Platform · Hub: Okul Platform — Decisions

Karar (OKUL-267, commit 122030a6, 2026-03-19)

B2B Customer panelinde hibrit login sistemi: OTP ve şifre ile giriş desteklenir.

Değişiklikler

  • Customer/OtpCode/GenerateOtpCodeRequest.php — OTP üretme isteği güncellendi (customer-specific)
  • CustomValidationRule.php — Özel validation rule eklendi
  • OtpAuthTest.php — 29 satır test eklendi

Neden

B2B müşterilerin hem OTP (telefon ile) hem de şifre ile giriş yapabilmesi.

How to apply

Customer OTP endpoint’i: POST /api/customer/otp veya genel auth endpoint’inden. B2B kullanıcılar user_group_type = 'customer' ile ayrılır.