New rails plugin for easily adding emailed verifications to your models
Fixie Verifications is a Rails plugin that lets you add emailed verifications to your models. From the README:
class User < ActiveRecord::Base
has_verification_number
end
u = User.create
An email with a random code is sent to joe@fixieconsulting.com.# Say the code is “12345” u.needs_verification!(“joe@fixieconsulting.com”)
Either of these workVerification.verify! “12345” u.verify! “12345”
u.verified? # returns true
</code>
Post a comment