Skip to content

Commit 6597c1b

Browse files
authored
Update user email to random bytes on disable
There is a unique constraint on the user email column, meaning blanking won't work for disabling subsequent users
1 parent 3850315 commit 6597c1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Console/Commands/User/Disable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function handle(): int {
5151
}
5252

5353
$userId = $user->id;
54-
$user->email = '';
54+
$user->email = random_bytes(10);
5555
$user->password = random_bytes(10);
5656
$user->verified = false;
5757

0 commit comments

Comments
 (0)