-
Notifications
You must be signed in to change notification settings - Fork 228
Password less activation
jkamenik edited this page Nov 21, 2012
·
9 revisions
Note: This will not work if you also using external authentication (OAuth).
I recommend following almost all the steps on the User Activation example. But then modify things slightly as follows.
Fix the user model so that the activation emails will be sent even if no password is stored.
class User < ActiveRecord::Base
authenticates_with_sorcery!
# fix sorcery so that we can activate without a password
before_create :setup_activation
def external?
false
end
end
Meta
Using Sorcery
- Activity Logging
- Brute Force Protection
- DataMapper Support
- DelayedJob Integration
- Distinguish login failure reasons
- External
- External---Microsoft-Graph-authentication
- Fetching Currently Active Users
- HTTP Basic Auth
- Integration Testing
- OAuth Landing Page
- Password-less Activation
- Remember Me
- Reset Password
- Routes Constraints
- Session Timeout
- Simple Password Authentication
- Single Table Inheritance Support
- Testing Rails
- User Activation
Contributing to Sorcery