我搬到了 Bolt 4(从 Bolt 3.7 开始),并希望实现前端用户,让他们可以访问网站的私人内容。以前,我使用了扩展BoltAuth/Auth,它就像一个魅力。
现在在 Bolt 4 中,没有像在 Bolt 3.x 中那样从后端页面安装扩展的简单方法。我发现我可以composer
这样做,但我遇到了以下问题:
> composer require "boltauth/auth:3.0.1"
[InvalidArgumentException]
Could not find a matching version of package boltauth/auth. Check the package
spelling, your version constraint and that the package is available in a stability
which matches your minimum-stability (stable).
要么我做错了,要么扩展与 Bolt 4.1 不兼容。
有人可以告诉我是否有办法使这个扩展工作?还是前端用户管理的替代方案?
编辑:我现在正在使用bolt/users
扩展,因为它可以用来添加一个ROLE_MEMBERS
并让用户登录前端。