mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-21 10:15:01 -04:00
* fix(auth): throttle login attempts to prevent brute-force attacks
Add Throttle filter and wire into login route to mitigate
credential-stuffing/brute-force risk (redacted).
- Register App\\Filters\\Throttle in Filters config
- Add \"too_many_attempts\" language string for throttled responses
- Add tests for Throttle filter and Login controller throttling
* Correct bug causing error to not display.
* i18n(login): add too_many_attempts translation for login throttling
Add localized \"too many attempts\" message across all language files
to support login throttling feature. Message informs users to wait
before retrying after exceeding attempt limit.
* fix(auth): rate limit login attempts to prevent brute-force attacks
Add Throttle filter that rate limits login/migrate POST requests,
keyed by IP and submitted username, using CodeIgniter's cache-based
Throttler (redacted).
- Wire filter into login/migrate routes
- Show localized error message when rate limit exceeded
- Broaden writable/cache ignore pattern to cover throttler cache file
* Update app/Language/ar-EG/Login.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* style(i18n): use single quotes for translation array keys and values
Convert double-quoted array keys and string values to single quotes
across all Login.php language files for style consistency.
* test(auth): update LoginTest to use throttler service directly
Replace clearThrottleState's Services::resetSingle('throttler') call
with Services::throttler() to reset state via the service instance.
Add usedKeys property to track throttle keys used across test cases.
* test(auth): skip login test assertion when migration required
LoginTest now check migration-required response state before
asserting HTTP 200. Prevent false failures when app force
pending-migration redirect during test run.
* Added missing return statements
32 lines
2.1 KiB
PHP
32 lines
2.1 KiB
PHP
<?php
|
||
|
||
return [
|
||
"gcaptcha" => "Ben robot değilim.",
|
||
"go" => "Giriş",
|
||
"initialization_message" => "",
|
||
"initialization_required" => "",
|
||
"initialize" => "",
|
||
"invalid_gcaptcha" => "Robot olmadığınızı kanıtlayınız.",
|
||
"invalid_installation" => "Yükleme doğru değil, php.ini dosyanızı gözden geçirin.",
|
||
"invalid_username_and_password" => "Geçersiz kullanıcı adı ve/veya parola.",
|
||
"login" => "Giriş",
|
||
"logout" => "Çıkış",
|
||
"migrating_database" => "Veritabanı Taşınıyor",
|
||
"migration_auth_message" => "Veritabanı göçünün {0} versiyonuna yetkilendirilmesi için yönetici kimlik bilgileri gereklidir. Devam etmek için giriş yapın.",
|
||
"migration_complete" => "Veritabanı başarıyla başlatıldı!",
|
||
"migration_complete_login" => "Artık giriş yapabilirsiniz.",
|
||
"migration_complete_migrate" => "Veritabanı başarıyla taşındı!",
|
||
"migration_complete_redirect" => "Göç tamamlandı. Girişe yönlendiriliyor...",
|
||
"migration_error_connection" => "Bağlantı hatası. Lütfen tekrar deneyin.",
|
||
"migration_failed" => "Göç başarısız oldu",
|
||
"migration_initializing" => "Veritabanı başlatılıyor",
|
||
"migration_needed" => "Girişten sonra {0} veri tabanına göç başlayacak.",
|
||
"migration_required" => "Veritabanı Göçü Gerekli",
|
||
"migration_running" => "Veritabanı göçleri çalışıyor...",
|
||
"password" => "Parola",
|
||
"required_username" => "Kullanıcı adı alanı gereklidir.",
|
||
'too_many_attempts' => 'Çok fazla deneme yapıldı. Lütfen bir süre bekleyip tekrar deneyin.',
|
||
"username" => "Kullanıcı Adı",
|
||
"welcome" => "{0}'e Hoş Geldiniz!"
|
||
];
|