Authentication
CodeIgniter intentionally does not provide an internal authentication or authorization class. There are a numberof great third-party modules that provide these services, as well as resources in the community for writingyour own. The following are recommended guidelines to encourage consistency among developers ofmodules, projects, and the framework itself.
Recommendations
- Modules that handle login and logout operations should trigger the
login
andlogout
Events when successful - Modules that define a “current user” should define the function
user_id()
to return the user’s unique identifier, ornull
for “no current user”
当前内容版权归 codeigniter4 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 codeigniter4 .