for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DMK\MKSamlAuth\Enricher;
use DMK\MKSamlAuth\Model\FrontendUser;
class DummyPasswordEnricher implements EnricherInterface
{
public function process(FrontendUser $user, array $context)
if ($user->hasProperty('password') && $user->getProperty('password')) {
return;
}
$password = base64_encode(random_bytes(32));
$user->setProperty('password', $password);