Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use App\Services\Clustering\ClusteringService;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\Gate;
use Illuminate\Http\Request;
use Illuminate\Support\ServiceProvider;
use Laravel\Cashier\Cashier;
use Illuminate\Cache\RateLimiting\Limit;
Expand Down Expand Up @@ -52,5 +53,13 @@ public function boot()
RateLimiter::for('ses-emails', function () {
return Limit::perSecond(12);
});

RateLimiter::for('login', function (Request $request) {
return Limit::perMinute(5)->by($request->ip());
});

RateLimiter::for('login-token', function (Request $request) {
return Limit::perMinute(10)->by($request->ip());
});
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openlittermap-web",
"version": "5.8.2",
"version": "5.8.3",
"type": "module",
"author": "Seán Lynch",
"license": "GPL v3",
Expand Down
3 changes: 3 additions & 0 deletions readme/changelog/2026-04-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
- fix(photos): add shared `resolvePhotoUrl()` composable for S3/MinIO URL handling — fixes broken images in TeamPhotoList, TeamPhotoEdit, TeamApprovalQueue, ParticipantWorkspace; refactors Uploads.vue, PhotoPreview.vue, and PhotoViewer.vue to use same helper (covers FacilitatorQueue, AdminQueue, AddTags automatically)
- feat(teams): team map popup now matches global map — shows photo image, tag summary, user attribution, picked-up status, and date via `popupHelper`; images load directly via `resolvePhotoUrl` (bypasses signed-url endpoint for pending private photos)
- fix(teams): improve text readability across 14 team Vue components — bump `text-white/30`→`/50`, `text-white/40`→`/60`, `text-white/50`→`/60` (section headers), `placeholder-white/30`→`/50`, `text-slate-400`→`slate-500` (light theme), `text-gray-400`→`gray-300` (facilitator queue); skip disabled button states

## v5.8.3
- fix(auth): resolve 429 Too Many Requests on production login — double throttle middleware (global `throttle:60,1` + route `throttle:5,1`) shared same cache key, halving effective limit to ~2 req/min; switched to named rate limiters (`login`, `login-token`) with independent keys
4 changes: 2 additions & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@
Route::post('/password/reset', [ResetPasswordController::class, 'reset']);

Route::post('/auth/login', [LoginController::class, 'login'])
->middleware(app()->isLocal() ? ['web'] : ['web', 'throttle:5,1']);
->middleware(app()->isLocal() ? ['web'] : ['web', 'throttle:login']);

Route::post('/auth/token', [AuthTokenController::class, 'login'])
->middleware('throttle:10,1');
->middleware('throttle:login-token');

Route::post('/auth/logout', [LoginController::class, 'logout'])
->middleware(['web', 'auth:web']);
Expand Down
Loading