mune
eed641d2be
Add spaces around method arguments when setting default values
...
Closes #5288
2020-08-31 18:15:45 -03:00
Carlos Antonio da Silva
97aa37bb50
Use assert_empty minitest helper
2020-08-27 18:40:03 -03:00
Carlos Antonio da Silva
15135f7dc6
User assert_includes/refute_includes minitest helpers
2020-08-27 18:38:26 -03:00
Carlos Antonio da Silva
e39b9b9134
Fix order of arguments for assert_equal on tests
...
Use `assert_equal expected, actual` for proper error messages in case of
failures.
2020-08-27 18:24:17 -03:00
Luke Rollans
0d95c5ae8b
Generalise email address
2019-12-17 13:47:40 +08:00
Luke Rollans
9fb079c097
Add a test which checks for Case Mapping Collisions when resetting pw
...
See here for more information
https://eng.getwisdom.io/hacking-github-with-unicode-dotless-i/
2019-12-17 13:43:53 +08:00
Samuel Pordeus
fb18c6ca8d
Fix typos
2019-11-28 18:13:47 -03:00
tabakazu
940b939791
Add assert for check last_sign_in_ip value
2019-10-24 21:12:27 +09:00
Renan Gurgel
421ffc479f
Add test to admin error message
2019-10-03 14:15:47 -03:00
Leonardo Tegon
fee43f3c11
Always return an error when confirmation_token is blank ( #5132 )
...
As reported in https://github.com/plataformatec/devise/issues/5071 , if
for some reason, a user in the database had the `confirmation_token`
column as a blank string, Devise would confirm that user after receiving
a request with a blank `confirmation_token` parameter.
After this commit, a request sending a blank `confirmation_token`
parameter will receive a validation error.
For applications that have users with a blank `confirmation_token` in
the database, it's recommended to manually regenerate or to nullify
them.
2019-09-04 15:42:48 -03:00
Alessandro
ee65cd60c9
FIX plataformatec/devise#4127 ( #4700 )
2019-01-23 15:32:29 -02:00
Leonardo Tegon
c000b58c56
Add Rails 6 to CI ( #5009 )
2019-01-22 12:43:31 -02:00
kenji kobayashi
e3a00b27d1
Add an option to not automatically sign in a user after changing a password ( #4569 )
2018-12-28 11:29:58 -02:00
Tony Correia
1c8e97c75a
Issue 4763: Change login errors for when in paranoid mode
2018-05-09 10:49:27 -03:00
Koichi ITO
dac90eeb80
Use update instead of update_attributes
...
`update_attributes` and `update_attributes!` will be deprecated in Rails 6.
Refer 5645149d3a
2018-03-29 15:39:24 -03:00
Leonardo Tegon
3722aa6296
Revert "Replace log_process_action to append_info_to_payload"
2018-03-15 09:43:12 -03:00
Leonardo Tegon
5664b19703
Ensure Devise isn't performing model validations
2018-03-14 15:21:07 -03:00
Justin Coyne
a45bbe1783
Test on Rails 5.2.0.rc1 ( #4711 )
2018-02-22 10:05:19 -03:00
Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Rafael França
701d4929d8
Merge pull request #4375 from fbbergamo/change-status-append
...
Replace log_process_action to append_info_to_payload
2017-11-22 15:53:28 -05:00
Masato Oba
975bb8490d
Fix typo 'an user' to 'a user'
2017-10-29 12:31:06 +00:00
Masato Oba
6ceb649b10
Fix small typo in authenticatable_test.rb
2017-10-29 12:10:39 +00:00
Dan Schultzer
be2e17841e
Separate Devise test methods from Devise
2017-04-29 10:24:22 -07:00
Matthew Rudy Jacobs
7c4e8c8d17
Rails 5.1 requires ActionController::TestRequest to have a controller class
...
Pass it in as an anonymous class
2017-04-28 10:51:27 -05:00
Felipe Bergamo
6eb412efae
Typo test doc
2017-04-24 18:38:49 -03:00
Felipe Bergamo
9caae50339
Replace log_process_action to append_info_to_payload
2016-12-10 18:40:57 -02:00
Marc G Gauthier
8ee01fc10b
Fix a minor typo in specs
...
There is nothing much to this one, it's in the test description so it shouldn't impact a thing and will make this line more greppable.
2016-08-11 09:56:45 +02:00
Stefan Botzenhart
cbbe932ee2
Fix authenticated engine routes ( #4081 )
...
Fix infinite loop in authenticated engine routes in Rails 5
https://github.com/plataformatec/devise/issues/3705
2016-05-21 11:55:56 -03:00
Matt Yanchek
85bcbdf18b
Set minimum password length for edit and new views ( #4068 )
...
* Set minimum password length for edit and new views
* Update edit.html.erb
* Update registerable_test.rb
2016-05-05 17:16:41 -03:00
Lucas Mazza
536279b05b
Replace homemade assert_not matcher in favor of refute.
2016-05-03 13:57:10 -03:00
Lucas Mazza
74ab3e9a05
Remove references to ActiveSupport::OrderedHash.
...
We no longer support legacy rubies where hashes aren't ordered, so we don't need
to use this class for it.
2016-05-03 13:48:42 -03:00
Lucas Mazza
13285d7ef3
Remove a few Ruby syntax warnings from the test suite.
2016-05-02 10:47:05 -03:00
Ulisses Almeida
1ddca80cee
Set the new default of sign_out_via config
2016-05-01 12:44:40 -03:00
Ulisses Almeida
896521be73
Se the new default for skip_session_storage config
2016-05-01 12:44:40 -03:00
byzg
357ce9c3b5
Humanize authentication keys in failure flash message ( #4014 )
...
Humanize and translates the authentication keys in failure flash message.
2016-04-26 11:17:03 -03:00
Philipe Fatio
209b97d86b
Remove upgrade path for old session format ( #4032 )
...
This removes an upgrade path that migrated the old serialization format
to the new one introduced. This was introduced in c22d755 (#2300 )
3 years ago and should no longer be needed.
2016-04-26 11:10:55 -03:00
Ulisses Almeida
4a4b5ba196
Fix remember me always extending the period
...
Now the config `extend_remember_period` is used to:
`true` - Every time the user authentication is validated, the
cookie expiration is updated.
`false` - Does not updates the cookie expiration.
Closes #3994
2016-04-15 20:28:46 -03:00
José Valim
b97b3e6e3b
Do not timeout if remember me is enabled
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-01-22 16:19:10 +01:00
José Valim
4ec7dc0f27
Store creation timestamp on remember cookies
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-01-18 15:17:25 +01:00
Thomas Walpole
302c4e43bd
fix Rails 5 test
2015-12-15 10:32:24 -08:00
Thomas Walpole
2024fca4df
Rails 5 compatability. Remove rails < 4.1 and Ruby < 2.1
2015-12-11 09:47:30 -08:00
Błażej Pankowiak
9f32f421a5
Allow skipping the timeoutable hook
2015-11-02 23:53:09 +01:00
Lucas Mazza
40258bf100
Remove the custom OmniAuth camelization on teardown.
2015-08-28 11:26:41 -03:00
Timo Schilling
f5e984c151
use OmniAuth::Utils.camelize
...
This will display the provider name with the original camelization:
facebook => Facebook
github => GitHub
linkedin => LinkedIn
2015-08-28 07:51:37 +02:00
David Rodríguez
4064641967
Remove obsolete expire_auth_token_on_timeout
...
This should have been removed in dff7891b97
when token authentication (and the reset_authentication_token! method)
were removed.
2015-07-11 09:01:22 -03:00
Michael Borohovski
f0992e4a96
Added an option to not automatically sign in a user after a password reset. This is useful for cases where additional strategies might be needed (such as two-factor authentication, e.g.), or generally if it is considered a security risk to automatically log in a user after a password is reset.
2015-02-13 02:29:11 -08:00
Dave Powers
63ae9701b4
Update casing of 'OmniAuth' to match that of official OmniAuth documentation
2014-11-14 14:45:09 -05:00
BM5k
b5713a8ddf
add Rememerable#after_remembered callback
2014-11-08 16:39:24 -07:00
BM5k
6f88df3453
add test for after_database_authentication
2014-11-08 16:00:07 -07:00
Timo Schilling
6b0d11ed7a
use authentication_keys in flash message, instead of static ‘username’ ( fix #3201 )
2014-09-23 18:42:11 +02:00