You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduces a verified email change workflow for users. New email is
stored as pending until confirmed via signed link, with cancel support
and panel-aware notifications for both old and new addresses.
- Domain actions: InitiateEmailChange, ConfirmEmailChange, CancelEmailChange
- Events + notifications for initiated/confirmed/cancelled states
- Filament pages for confirm/cancel and EditProfile integration
- Migrations adding pending_email columns
- UpgradeCommand for both packages
- Notifications (URL is supplied via constructor): `Backstage\Laravel\Users\Notifications\Email\ConfirmEmailChange`, `Backstage\Laravel\Users\Notifications\Email\EmailChangeRequested`.
221
+
- Config block `users.email_change.*` for token lifetime, cooldown and old-address notification.
222
+
223
+
### Minimal setup in your application
224
+
225
+
```php
226
+
// app/Providers/AppServiceProvider.php
227
+
use Backstage\Laravel\Users\Events\Email\EmailChangeInitiated;
228
+
use Backstage\Laravel\Users\Notifications\Email\ConfirmEmailChange;
229
+
use Backstage\Laravel\Users\Notifications\Email\EmailChangeRequested;
warning(__('Email-change columns are missing on the :table table. Run migrations to enable the feature.', ['table' => $usersTable]));
77
+
78
+
return;
79
+
}
80
+
81
+
info(__('Email-change toolkit is ready.'));
82
+
83
+
if (config('users.email_change.enabled', true)) {
84
+
note(__('Reminder: backstage/laravel-users does not register a listener for EmailChangeInitiated by default. If you are not using backstage/users, wire your own listener that builds the confirmation URL and dispatches the notification (see the package README).'));
0 commit comments