Skip to content

Commit 9ab9916

Browse files
committed
fix random password generation
1 parent bcbea7c commit 9ab9916

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
@@ -52,7 +52,7 @@ public function handle(): int {
5252

5353
$userId = $user->id;
5454
$user->email = uniqid() . '@disabled-user.wikibase.cloud';
55-
$user->password = random_bytes(10);
55+
$user->password = sha1(random_bytes(10));
5656
$user->verified = false;
5757

5858
if ($user->save()) {

0 commit comments

Comments
 (0)