Changes auto-committed by Conductor

This commit is contained in:
Andras Bacsai
2025-10-16 09:05:24 +02:00
parent 53cd2a6e86
commit 728f261316
6 changed files with 426 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ trait DeletesUserSessions
{
static::updated(function ($user) {
// Check if password was changed
if ($user->isDirty('password')) {
if ($user->wasChanged('password')) {
$user->deleteAllSessions();
}
});