Wheels Auth Generator
OfficialImplement secure user authentication, fast.
System Documentation
What problem does it solve?
This Skill provides a robust and secure foundation for user authentication in CFWheels applications, automating the setup of user models, session management, and industry-standard password hashing. It ensures your application's user access is secure and reliable from the start.
Core Features & Use Cases
- Secure User Model: Generates a user model with essential validations (presence, uniqueness, format, length) and SHA-512 password hashing.
- Sessions Controller: Provides a complete sessions controller for handling user login, logout, and session management.
- Authentication Filter: Includes an authentication filter to easily protect specific routes and actions, ensuring only logged-in users can access sensitive areas.
- Use Case: Quickly set up a user login system. This skill provides the
Usermodel withemailandpasswordvalidations, aSessionsControllerfornew,create, anddeleteactions, and arequireAuthfilter to protect sensitive pages, allowing you to focus on core application features.
Quick Start
In User model:
beforeSave("hashPassword"); public any function authenticate(required string email, required string string password) { # ... authentication logic ... }
In Sessions controller:
function create() { var user = model("User").authenticate(email=params.email, password=params.password); if (isObject(user)) { session.userId = user.id; redirectTo(controller="home"); } }
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Wheels Auth Generator Download link: https://github.com/wheels-dev/wheels/archive/main.zip#wheels-auth-generator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.