• Mahmoud Aglan's avatar
    fix(security): revoke the tokens the removed mobile API issued · 80cc4497
    Mahmoud Aglan authored
    AuthOtpController::verify() accepted a constant '0000' in the mode every instance
    shipped with, and minted a Sanctum token with ability 'mobile:*' for whichever
    active user matched the submitted phone number — staff included. The routes were
    deleted in 883391c7, so the tokens reach nothing today, but a credential that was
    issuable without authentication should not sit in the table waiting for the next
    surface that accepts Sanctum.
    
    Every client gets this, so it is a migration rather than an SSH per instance.
    Two such rows exist on the one instance that used the API; the others have none,
    and the table guard covers instances that never ran Sanctum's migration.
    
    Deleting rows in up() is a deliberate exception to "destructive operations live
    in down() only" — that rule protects schema and client data, and this is neither.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    80cc4497
Name
Last commit
Last update
Screenshots Loading commit data...
app Loading commit data...
bootstrap Loading commit data...
config Loading commit data...
database Loading commit data...
docker Loading commit data...
docs Loading commit data...
docs-site Loading commit data...
gap-filling-plans Loading commit data...
marketing-site Loading commit data...
plans Loading commit data...
public Loading commit data...
reference/oc-sport Loading commit data...
resources Loading commit data...
routes Loading commit data...
scripts Loading commit data...
storage Loading commit data...
tests Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.env.example Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.npmrc Loading commit data...
Beanding Guide.txt Loading commit data...
CLAUDE.md Loading commit data...
Dockerfile Loading commit data...
README.md Loading commit data...
artisan Loading commit data...
captain-definition Loading commit data...
composer.json Loading commit data...
composer.lock Loading commit data...
deploy.sh Loading commit data...
elcaptain-sportsonly-db.md Loading commit data...
one-click-app.yml Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
phpunit.xml Loading commit data...
system info.txt Loading commit data...
vite.config.js Loading commit data...
نادى الشيخ زايد كشف بيانات اللاعبين (2).html Loading commit data...