arif-rh/ci4-auth

CodeIgniter 4 的 PHPAuth

0.4.0 2021-06-28 12:07 UTC

This package is auto-updated.

Last update: 2024-09-28 19:04:19 UTC


README

此包来自 PHPAuth,但完全重写以便更容易与 CodeIgniter 4 集成。

安装

  1. composer require arif-rh/ci4-auth
  2. 确保已正确设置数据库配置
  3. php spark migrate -n Arifrh\Auth
  4. php spark db:seed \\Arifrh\\Auth\\Database\\Seeds\\AuthSeeder

功能

  • 注册
  • 激活邮件
  • 登录
  • 请求重置密码
  • 使用 bcrypt 加密密码
  • 通过限制请求防止暴力破解攻击

鸣谢