It adds support for send invitations by email (it requires to be authenticated) and accept the invitation by setting a password.
It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password
Remarkable RSpec matchers for devise_invitable models. It should be used with remarkable_devise.
It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password
It adds support for send invitations by email (it requires to be authenticated) and accept the invitation setting the password
Extend devise and devise_invitable allowing multiple invitations.
A custom rails_admin invitation action for use with devise_invitable
This gem generates Devise views styled with Bootstrap via the `bootstrap_form` gem. If you plan to use, or are using, `bootstrap_form` in your app, your Devise forms will be consistent with the rest of your forms. The generator will detect if you're using `devise_invitable`, and will generate `bootstrap_form` forms for its views as well. If you're using `devise-i18n`, the forms will use translations.
== Devise::Revokable A module for Devise[http://github.com/plataformatec/devise] This gem was created by "borrowing" heavily from Devise::Invitable[http://github.com/scambra/devise_invitable] It exists to extend Devise to provide the basis for what is essentially the reverse of the standard <tt>confirmable</tt> module. Where <tt>confirmable</tt> sends an email and awaits a response, before confirming a new registration, <tt>revokable</tt> allows immediate access and sends an email which provides a link to "revoke" the account if it was created fraudulently. This is useful if you want to lower the barrier to entry to creating accounts, and clearly, if account security isn't a concern. Note that tests are non-existent. Use freely but at your own risk. === Configuring It works like normal Devise modules. Add the <tt>:revokable</tt> module to the declaration. # in user.rb devise :revokable # plus other devise modules If the user who received the revocation email follows the provided link and confirms revocation, the account will effectively be "revoked" and inactive, unable to log in. Additionally, you may want to override <tt>#revoke!</tt> to perfom additional revocation on the account, e.g. deleting posts made, resetting personal information, etc. The super method yields to a block for this purpose. # in user.rb def revoke! super do self.some_method_that_resets_me! end end That's about the extent of it. As with typical devise modules you can override the mailers and views with your own. Additionally you can define the module accessor <tt>@@mailer</tt> on the module with a proc to handle your mail if you need to. This proc is yielded two arguments, the method name (e.g. :revocation_instructions), and the affected resource. # in config/initializers/devise_revokable.rb require 'devise_revokable' require 'my_mailer' DeviseRevokable.mailer = proc {|method_name, resource| MyMailer.send(:method_name, resource) }