Upgrading from 1.0.2 to 1.0.3
Handbook · Operations · Changelog (CHANGELOG.md)
1.0.3 follows the 1.0.2 security release. Upgrade from 1.0.2 (from an older release, follow Upgrading to 1.0.2 first). It has one database migration and no new .env key. It changes:
- Members link OAuth providers from their account settings. Account settings has a Connected accounts panel. Link starts a flow bound to the signed-in account (
POST /api/v1/oauth/{provider}/link/start), the provider sends the member back to settings, and the current password confirms it (POST /api/v1/oauth/{provider}/link). Unlink asks for the password too. The player login page shows the configured providers' sign-in buttons. - Accounts made by OAuth sign-up can have a password of their own. The new
users.has_own_passwordcolumn records whether an account has a password its owner knows. - OAuth sign-in asks a two-factor account for its code, the same way password sign-in does.
- OAuth sign-up honours a closed registration. While
registration_enabledis off, a new provider identity creates nothing. - Admin notifications are admin-only; moderators keep their alerts. Moderators get user reports, support tickets and suspicious activity, and nothing else.
The changelog (CHANGELOG.md) lists every change.
Steps
Run commands from the installation's backend directory with the PHP CLI the site uses (in Docker, docker compose exec backend php artisan ... from the project root).
-
Take a backup, for example with
php artisan pulse:backup:database, and keep a copy of the project folder. -
Switch the code to 1.0.3. Extract the release archive over the installation. It adds and replaces files and deletes none, so your
.envfiles,storage, uploads and installed plugins stay. -
Run the migration.
php artisan migrate --force2026_11_26_000000_add_has_own_password_to_users_tableaddsusers.has_own_password(boolean, default true). Every existing account gets true, because the engine cannot tell an old OAuth sign-up from a member who has set a password since, so existing accounts behave as before. Accounts created by OAuth sign-up from now on get false until their owner sets a password through the reset email; setting or changing a password anywhere (reset, change, admin, console) sets it to true. Going back, the migration's down step drops the column. -
Rebuild the configuration cache and restart long-running processes.
php artisan config:cacheThen restart this site's PHP-FPM and Horizon or the queue workers. Docker: from the project root run
docker compose up -d --build. -
OAuth providers. Nothing to configure for sign-in. Linking from settings uses the same provider redirect URL as sign-in (
/api/v1/oauth/{provider}/callback), so the URLs registered with Google, Discord or GitHub stay as they are. Check one link end to end after the upgrade: Account settings > Connected accounts > Link, approve at the provider, then confirm with your password. -
Two-factor accounts. A member with 2FA on who signs in through a provider now lands on the login page's code step (
/login?oauth_2fa=1), as after a password. Tell your members if they are used to provider sign-in skipping it. -
Registration. If
registration_enabledis off (Admin > Settings > General > Registration Status), new OAuth sign-ups are refused (oauth_error=registration_closed) and an unfinished Discord sign-up cannot complete. Members who already have an account still sign in. -
Moderators. Moderators no longer reach
/api/v1/admin/notifications(403) or the Notifications page. Their bell shows their user-report, ticket and suspicious-activity alerts from/api/v1/admin/moderation-alerts, and the activity feed. Copies of other notifications that 1.0.2 wrote for moderators stay in the table but are never shown to them; an admin can remove them in the database if wanted (admin_notificationsrows whoseuser_idis a moderator and whosetypeis notreport,ticketorsuspicious).
For plugin and front-end authors
- OAuth link.
POST /api/v1/oauth/{provider}/linktakescurrent_passwordonly, afterPOST /api/v1/oauth/{provider}/link/start(which returns the provider redirect URL) and the provider's return to the callback. 1.0.2 callers that sentcodeandstateget 400code: link_not_started. Other answers:identity_taken,link_failed, and 422code: password_not_setfor an account without a password of its own (point the member to the reset email). - OAuth unlink.
DELETE /api/v1/oauth/{provider}/unlinkneedscurrent_password, shares the 5-a-minute password budget, answers 404 for a provider that is not linked, and never removes the last way into an account that has no password of its own. - Sign-in callback. New
oauth_errorvalues:registration_closedandrefused(the refusal text is never in the address). A two-factor account gets/login?oauth_2fa=1#<challenge>(JSON:two_factor_requiredandchallenge_token); finish withPOST /api/v1/2fa/verify. - Admin notifications.
AdminNotification::MODERATOR_TYPES(report,ticket,suspicious) reach admins and moderators throughnotifyAll()/notifyAllAdmins(); every other type reaches admins only. Use those three types only for content a moderator may see. Suspicious-activity alerts have typesuspicious(1.0.2 usedwarning), in theadmin.notification.createdhook and theadmin.notificationwebhook too. An admin broadcast reaches admins only.
Going back
Put the 1.0.2 files back from the copy in step 1, run php artisan migrate:rollback --step=1 before you do if you want the column gone (1.0.2 ignores it otherwise), and repeat step 4.