【问题标题】:how fix argon2i error in Sylius installation?如何修复 Sylius 安装中的 argon2i 错误?
【发布时间】:2020-04-10 08:42:03
【问题描述】:

在使用 composer 安装结束时出现此错误:

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

我使用带有 Catalina 操作系统的 Mac

XAMPP

PHP 7.2.29

我该如何解决这个错误

【问题讨论】:

  • 同样使用 php 7.3.29

标签: sylius


【解决方案1】:

尝试更改 config/packages/security.yaml 这些行:

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

source

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-02
    • 2017-06-23
    • 1970-01-01
    相关资源
    最近更新 更多