3

At the end of the installation with composer this error appears:

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  
!!  In SecurityExtension.php line 561:
!!                                                                                 
!!    Algorithm "argon2i" is not available. Either use "argon2id", "auto" or upgr  
!!    ade to PHP 7.2+ instead.                                                     
!!                                                                                 
!!  
!!  
Script @auto-scripts was called via post-install-cmd

I use a Mac with Catalina OS

XAMPP

PHP 7.2.29

How can i fix this error

Jairo Erazo
  • 174
  • 1
  • 10

1 Answers1

1

Try to change in config/packages/security.yaml these lines:

security:
    ...
    encoders:
        Sylius\Component\User\Model\UserInterface:
            algorithm: sha512
        argon2i  : sha512

source

Dr.X
  • 853
  • 9
  • 15