Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
app/controllers/rodauth_controller.rb - Base controller
config/initializers/rodauth.rb - Configuration
app/views/layouts/rodauth.html.erb - Auth layout
PostgreSQL extension migration (if using PostgreSQL)
Step 2: Create Account Type
Choose the appropriate generator for your use case:
# Basic user account
rails generate pu:rodauth:account user
# Admin with 2FA and security features
rails generate pu:rodauth:admin admin
# Customer with entity association
rails generate pu:rodauth:customer customer
Account Generators
Basic Account (pu:rodauth:account)
Creates a standard user account with configurable features:
rails generate pu:rodauth:account user [options]
Options:
Option
Description
--defaults
Enable default features (login, logout, remember, password reset)
# app/rodauth/user_rodauth_plugin.rbclassUserRodauthPlugin < RodauthPlugin
configure do# Features enabled for this account
enable :login, :logout, :remember, :create_account, ...
# URL prefix (non-primary accounts)
prefix "/users"# Password storage
account_password_hash_column :password_hash# Controller for views
rails_controller { Rodauth::UserController }
# Model
rails_account_model { User }
# Redirects
login_redirect "/"
logout_redirect "/"# Session configuration
session_key "_user_session"
remember_cookie_key "_user_remember"endend
Customization
Custom Login Redirect
# app/rodauth/user_rodauth_plugin.rb
configure do
login_redirect { "/dashboard" }
# Or dynamically based on user
login_redirect doif rails_account.admin?
"/admin"else"/dashboard"endendend
Custom Validation
configure do# Add custom field validation
before_create_account do
throw_error_status(422, "name", "must be present") if param("name").empty?
end# After account creation
after_create_account doProfile.create!(account_id: account_id, name: param("name"))
endend
Override templates in app/views/rodauth/user_mailer/:
<%# app/views/rodauth/user_mailer/reset_password.text.erb %>
Hi <%= @account.email %>,
Someone requested a password reset for your account.
Reset your password: <%= @reset_password_url %>
If you didn't request this, ignore this email.
Portal Integration
Selecting Auth for Portal
When generating a portal, select the Rodauth account:
# Using internal requestRodauth::Rails.app(:user).rodauth(:user).create_account(
login:"user@example.com",
password:"secure_password"
)
# Or via model (if allowed)User.create!(
email:"user@example.com",
password_hash:BCrypt::Password.create("secure_password"),
status:2# verified
)