Skip to content

Commit

Permalink
Minor improvement to test password generation (#3005)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwerd committed Oct 16, 2021
1 parent 9614a04 commit f577760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Data/MutateTest.php
Expand Up @@ -11,7 +11,7 @@ public function testMutation()
$remoteuser = new \Idno\Entities\RemoteUser();
$remoteuser->handle = 'Test Mutation User';
$remoteuser->email = 'hello@withknown.com';
$remoteuser->setPassword(md5(rand())); // Set password to something random to mitigate security holes if cleanup fails
$remoteuser->setPassword(md5(openssl_random_pseudo_bytes(16))); // Set password to something random to mitigate security holes if cleanup fails
$remoteuser->setTitle('Test Mutation');

$id = $remoteuser->save(true);
Expand Down

0 comments on commit f577760

Please sign in to comment.