İki faktörlü doğrulama sisteminin nasıl çalışacağına karar vermeliyiz:
auth_security_2fa_modeTenant, güvenlik politikasını belirler. Kullanıcı, izin verildiğinde kendi tercihini yapar.
SettingManagement modülünde tanımlı 15 üyelik ayarı:
| Key | Label | Type | Default |
|---|---|---|---|
| auth_registration_enabled | Kayıt Aktif | select | 1 |
| auth_registration_email_verify | E-posta Doğrulama | select | 1 |
| auth_registration_approval | Admin Onayı | select | 0 |
| auth_registration_trial_days | Deneme Süresi | text | 7 |
| auth_theme | Login/Kayıt Teması | select | minimal |
| Key | Label | Type | Default |
|---|---|---|---|
| auth_session_lifetime | Oturum Süresi (dk) | text | 525600 |
| auth_session_device_limit | Cihaz Limiti | text | 1 |
| Key | Label | Type | Default |
|---|---|---|---|
| auth_security_max_attempts | Max Giriş Denemesi | text | 5 |
| auth_security_lockout | Kilitleme Süresi (dk) | text | 30 |
| auth_security_2fa_enabled | 2FA Aktif | select | 1 |
| auth_security_2fa_expiry | 2FA Kod Süresi (dk) | text | 5 |
| Key | Label | Type | Default |
|---|---|---|---|
| auth_subscription_paid_enabled | Ücretli Üyelik | select | 0 |
| auth_subscription_auto_renewal | Otomatik Yenileme | select | 1 |
| auth_subscription_reminder_days | Hatırlatma (gün) | text | 7 |
| auth_subscription_grace_days | Tolerans Süresi (gün) | text | 3 |
| Key | Label | Type | Default |
|---|---|---|---|
| corporate_enabled | Kurumsal Üyelik | select | 0 |
| corporate_max_users | Max Alt Kullanıcı | text | 0 |
Üyelik sisteminin tam çalışması için aşağıdaki ayarların eklenmesi gerekiyor:
| Key | Label | Type | Default | Durum |
|---|---|---|---|---|
| auth_security_2fa_mode | 2FA Modu | select | optional | YENİ |
| auth_security_2fa_method | 2FA Yöntemi | select | sms | YENİ |
| auth_security_remember_device | Cihaz Hatırla | select | 1 | YENİ |
| auth_security_remember_days | Cihaz Hatırla Süresi | text | 30 | YENİ |
| sms_provider | SMS Sağlayıcı | select | netgsm | YENİ |
| sms_api_key | SMS API Key | password | YENİ | |
| sms_api_secret | SMS API Secret | password | YENİ | |
| sms_sender_id | SMS Gönderici Adı | text | YENİ | |
| auth_registration_phone_required | Telefon Zorunlu | select | 0 | YENİ |
| auth_registration_terms_required | Kullanım Şartları Zorunlu | select | 1 | YENİ |
setting('auth_security_2fa_mode') → required/optional/disabled
user->two_factor_enabled kontrol et
setting('auth_security_remember_device') → Cookie var mı?
setting('auth_security_2fa_method') → SMS/Email
setting('auth_security_2fa_expiry') dakika içinde kod girilmeli