No commit activity in last 3 years
No release in over 3 years
Devise Security NG with complex locking mechanism
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3

Runtime

>= 3.0
 Project Readme

devise_security_ng

It adds security features to devise

Features/Modules

  • :user_lockable
  • :password_reusable

Installation

Add gem devise_security_ng to your Gemfile.

$ gem 'devise_security_ng', :git => 'git://github.com/take-the-interview/devise_security_ng.git'

Install gem

$ bundle install

Usage

For devise_security_ng to work some of the built-in devise modules have to be turned off in User model:

  • Lockable

Generate migrations for each of the devise_security_ng modules you think of using.

$ rails g devise_security_ng:user_lockable <MODEL>
$ rails g devise_security_ng:password_reusable <MODEL>
$ rake db:migrate

in User Model add devise_security_ng modules to be used

# app/model/user.rb
class User < ActiveRecord::Base
	devise :database_authenticatable, ..... , :user_lockable, :password_reusable
end

Edit module configurations in config/initializers/devise.rb

Copyright

Copyright (c) 2010 Take The Interview Inc. See LICENSE for details.

Author Alen Komic