1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Update TODO, CHANGELOG and README.

This commit is contained in:
José Valim 2009-11-24 15:29:46 -02:00
parent f9c5dd6a79
commit 0434d72009
5 changed files with 13 additions and 10 deletions

View file

@ -1,3 +1,6 @@
* enhancements
* Devise::Trackable - track sign in count, timestamps and ips
== 0.6.1
* enhancements

View file

@ -14,6 +14,7 @@ Right now it's composed of five mainly modules:
* Recoverable: takes care of reseting the user password and send reset instructions.
* Rememberable: manages generating and clearing token for remember the user from a saved cookie.
* Timeoutable: expires sessions without activity in a certain period of time.
* Trackable: tracks sign in count, timestamps and ip.
* Validatable: creates all needed validations for email and password. It's totally optional, so you're able to to customize validations by yourself.
There's an example application using Devise at http://github.com/plataformatec/devise_example .

3
TODO
View file

@ -1,5 +1,2 @@
* Create update_with_password
* Make test run with different ORMs
* Use request_ip in session cookies
* Devise::BruteForceProtection
* Devise::Trackeable

View file

@ -1,6 +1,6 @@
module Devise
ALL = [:authenticatable, :confirmable, :recoverable, :rememberable,
:trackable, :timeoutable, :validatable].freeze
:timeoutable, :trackable, :validatable].freeze
# Maps controller names to devise modules
CONTROLLERS = {

View file

@ -1,6 +1,6 @@
require 'test/test_helper'
class TrackableTest < ActionController::IntegrationTest
class TrackableHooksTest < ActionController::IntegrationTest
test "current and last sign in timestamps are updated on each sign in" do
user = create_user
@ -52,11 +52,13 @@ class TrackableTest < ActionController::IntegrationTest
end
test "does not update anything if user is signed out along the way" do
user = create_user(:confirm => false)
sign_in_as_user
swap Devise, :confirm_within => 0 do
user = create_user(:confirm => false)
sign_in_as_user
user.reload
assert_nil user.current_sign_in_at
assert_nil user.last_sign_in_at
user.reload
assert_nil user.current_sign_in_at
assert_nil user.last_sign_in_at
end
end
end