Category : bcrypt

I did a simple command in symfony to take a value from the console and encode it: $io = new SymfonyStyle($input, $output); $email = $input->getArgument(’email’); /** @var User $user */ $user = $this->em->getRepository(User::class)->findOneBy([ ’email’ => $email ]); if (empty($user)) { $io->error("User with email ‘$email’ not found"); return 0; } $password = $io->askHidden(‘Password: ‘); $hash = ..

Read more