mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Changelog and a minor change on the test title
This commit is contained in:
parent
857af600f7
commit
07ef99a8f0
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
* bug fix
|
* bug fix
|
||||||
* `/users/sign_in` doesn't choke on protected attributes used to select sign in scope (by @Paymium)
|
* `/users/sign_in` doesn't choke on protected attributes used to select sign in scope (by @Paymium)
|
||||||
* `failed_attempts` is set to zero after any sign in (including via reset password) (by @rodrigoflores)
|
* `failed_attempts` is set to zero after any sign in (including via reset password) (by @rodrigoflores)
|
||||||
|
* Added token expiration on timeout (by @antiarchitect)
|
||||||
|
|
||||||
== 2.1.0.rc
|
== 2.1.0.rc
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ class TokenAuthenticationTest < ActionController::IntegrationTest
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'should not authenticated and reset token when expire_auth_token_on_timeout is set to true, timeoutable is enabled and we have a timed out session' do
|
test 'should reset token and not authenticate when expire_auth_token_on_timeout is set to true, timeoutable is enabled and we have a timed out session' do
|
||||||
swap Devise, :token_authentication_key => :secret_token, :expire_auth_token_on_timeout => true, :timeout_in => (-1).minute do
|
swap Devise, :token_authentication_key => :secret_token, :expire_auth_token_on_timeout => true, :timeout_in => (-1).minute do
|
||||||
user = sign_in_as_new_user_with_token
|
user = sign_in_as_new_user_with_token
|
||||||
assert warden.authenticated?(:user)
|
assert warden.authenticated?(:user)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue