Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devise_suspendable

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devise_suspendable

  • 0.6.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

= devise_suspendable

devise_suspendable is a simple module which uses the Devise authentication framework Activatable module hooks to provide a simple clean way to suspend an account. When an account is suspended the date and time of suspension is recorded, as well as an optional reason, for easy reference.

== Setup (Assumes that you have devise already setup and your device models, e.g. User, are already created)

  1. Add gem devise_suspendable in your Gemfile
  2. Create a migration to update each of your device model(s), e.g. User, that you want to be suspendable rails g devise_suspendable User
  3. Run the migration rake db:migrate
  4. Mark the model as suspendable class User < ActiveRecord::Base devise ..., :activatable, :suspendable ... end

== Notes

  • :suspendable depends on :activatable

  • This plugin is similar to Lockable and can be used along side it, as long as Lockable is using token or timeouts as the unlock strategy. Lockable is great for failed login tracking, and subsequent locking, suspendable is best for manual account suspension

  • Maintaining your active users is part and parcel of running a web app

== References

== Thanks to

Released under the MIT license

Copyright (c) 2010, 2011 Josh Kalderimis, Amol Kelkar

FAQs

Package last updated on 27 Apr 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc