burnbright/silverstripe-auth-username

为 SilverStripe 安装添加用户名认证和用户名或电子邮件登录

安装次数: 123

依赖项: 0

建议者: 0

安全性: 0

星标: 7

关注者: 3

分支: 4

开放问题: 4

类型:silverstripe-module

dev-master 2017-08-30 19:18 UTC

This package is auto-updated.

Last update: 2024-08-24 19:16:02 UTC


README

此模块为 SilverStripe 引入用户名认证。它还提供了获取用户名和密码的附加功能。

设置

将模块文件夹复制到您的 SilverStripe 网站根目录。

模块的 _config.php 文件自动

  • 将 UsernameAuthenticator 添加到已注册认证器集合中
  • 装饰 Member 以具有 'Username' 数据库字段,以及用于生成用户名和密码的功能

在您的站点 _config.php 中,可选地添加以下任一项

Authenticator::set_default_authenticator("UsernameAuthenticator"); // makes username authentication default
Authenticator::unregister("MemberAuthenticator"); // removes default email + password authentication