Kanmaniselvan Murugesan
bafc23eae5
Issue 4895: Add after_database_authentication callback after sign_in immediately after password update ( #4916 )
2018-11-22 19:13:55 -02:00
Colin Ross
40f02ae69b
Only flash if the request object that is loaded supports it ( #4950 )
2018-11-13 15:26:00 -02:00
Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Matthew Rudy Jacobs
6fc6a28e3b
Avoid the assert_equal nil deprecation warning
2017-02-26 22:05:15 +00:00
Lucas Mazza
656720583f
Remove assert_nothing_raised deprecated usage.
2016-06-27 16:48:12 -03:00
Lucas Mazza
3f3ec236bb
Move Devise::TestHelpers to Devise::Test::ControllerHelpers.
2016-05-15 19:36:41 -03:00
Ulisses Almeida
2044fffa25
Deprecate the bypass option of sign_in ( #4078 )
...
The sign_in method permits the bypass option
that ignore the others options used. This behavior
has lead some users to a misconfusion what the
method really does.
This change deprecate the bypass option in favor
of a method that only does the sign in with bypass.
Closes #3981
2016-05-15 11:46:48 -03:00
Lucas Mazza
536279b05b
Replace homemade assert_not matcher in favor of refute.
2016-05-03 13:57:10 -03:00
Lucas Mazza
13285d7ef3
Remove a few Ruby syntax warnings from the test suite.
2016-05-02 10:47:05 -03:00
Lucas Mazza
49cf804c62
Merge pull request #3859 from twalpole/unsafe_h
...
Explicitly permit rather than using to_unsafe_h
2016-01-31 16:56:10 -02:00
djsegal
2006f87b58
Add #3732 helper logic to devise controller: #3864
2015-12-18 04:05:30 -05:00
Thomas Walpole
5d9f6d892f
Explicitly permit rather than using to_unsafe_h
2015-12-16 14:14:15 -08:00
Thomas Walpole
2024fca4df
Rails 5 compatability. Remove rails < 4.1 and Ruby < 2.1
2015-12-11 09:47:30 -08:00
Ryan Mitchell
04e01f49a9
Use builtin matchers in helper tests
2015-08-31 09:58:25 -04:00
Ryan Mitchell
a3da40a701
Wrap helper_method calls in respond_to?(:helper_method)
2015-08-29 05:29:05 -04:00
Nicolas Viennot
c22e7133b6
Removes the bang in confirm! and reset_password!
...
Closes #3412 and #3570 .
2015-04-19 11:47:44 -04:00
Dave Copeland
e1b9dc860f
remove use of hide_action in favor of protected
...
Rails 5 will [not have `hide_action` any longer](https://github.com/rails/rails/pull/18371/files ), as the Rails convention is to not expose private or protected methods as actions, thus obviating the need for `hide_action`.
Presumably, there is code inheriting from `DeviseController` that is
calling these helpers, so they cannot be private, so protected seems to
be the only way to get Devise working with Rails 5.
2015-03-01 15:05:20 -05:00
George Millo
a6a1524146
adding test for RegistrationsController#new yielding the resource
2015-02-14 15:37:21 +01:00
Rodrigo Rosenfeld Rosas
7e5d0ac736
Add tests for translation scope being preserved when inheriting a controller
...
issue #3367
2015-01-12 17:28:02 -02:00
Jimmy Bourassa
5dedd8c4cf
Add fragment support for store_location_for
2014-11-05 16:52:40 -05:00
Chaker Nakhli
e46a21be16
remove dynamically added method to DeviseController by active support load hook test
2014-10-29 16:14:38 +01:00
Chaker Nakhli
8a7796aea9
Add ActiveSupport load hook for DeviseController
2014-10-28 13:41:55 +01:00
Hannah Briggs
f80ebea0e6
allow set_flash_message to set flash.now messages
2014-10-18 21:28:20 -07:00
micat
7b5293906b
Return Symbol in find_scope! if String passed
2014-08-24 21:36:11 +09:00
alexsoble
039b75ba83
Incorporated edits from @lucasmazza, wrote integration tests for password reminder feature
2014-08-06 11:04:46 -04:00
José Valim
8b3b3d7955
Merge pull request #3042 from dropletzz/group_helpers
...
Helper methods for groups of mappings
2014-06-06 12:58:44 +02:00
Giovanni Caniato
dfcb342a8f
group methods defined in the current scope
2014-05-28 19:30:03 +02:00
Giovanni Caniato
cb1d6c4684
moved helpers definition from routes to controllers
2014-05-27 11:58:55 +02:00
Giovanni Caniato
8df6a2f38b
added groups with their helper methods
2014-05-26 16:45:18 +02:00
Maxim Pechnikov
a841e6c4f0
fixed storing location with bad URL
2014-04-25 19:14:32 +04:00
Daniel Pehrson
90e55409e1
Upgrade stray legacy hash syntax to 1.9 syntax.
2014-03-21 15:24:25 -04:00
Daniel Pehrson
ce3ead6b5f
Ensure registration controller block yields happen on failure in addition to success and closes #2936 .
...
Now with 100% more unit tests.
2014-03-21 10:29:14 -04:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Vasiliy Ermolovich
6d51e67fac
properly change devise config in specs
2014-01-04 19:19:13 +03:00
Lucas Mazza
7b66133861
Remove subscriber block so it won't leak across the test suite.
2014-01-04 19:01:05 +03:00
Christopher Sexton
7afc096fa4
Keep the query string and path in store_location_for
...
Persist the URI's query when saving to the session.
Fixes #2742
2013-11-20 15:47:20 -05:00
José Valim
f36efc0cc9
Ensure multiple leading / are also removed, thanks @homakov
2013-11-13 15:01:23 +01:00
José Valim
0582467032
Ensure we only store paths in store_location_for (thanks to @homakov for the tip)
2013-11-13 13:30:24 +01:00
Matthew Rudy Jacobs
268e486dbb
Add store_location_for helper
...
This is used as a complement to `stored_location_for`.
Example:
Before authorizing with Omniauth;
store_location_for(:user, dashboard_path)
redirect_to user_omniauth_authorize_path(:facebook)
In our Omniauth callback
sign_in(user)
redirect_to stored_location_for(:user) || root_path
2013-11-09 00:59:00 +00:00
Vipul A M
ae6a37f796
Cleanup tests for unused variables
2013-09-15 01:52:53 +05:30
José Valim
dff7891b97
Get rid of token authentication
2013-09-02 19:15:47 -03:00
Andri Möll
052cbef205
Don't confirm email after password reset.
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2013-08-18 10:13:35 +02:00
José Valim
354e5022bf
Only allow insecure token lookup if a flag is given
2013-08-06 11:55:13 +02:00
José Valim
f5a77ac598
Skip storage for cookies on unverified requests
2013-08-05 10:24:11 +02:00
Drew Ulmer
e029ad7b0c
Fix improper login param sanitization permit
...
This includes a failing test case that hooks into ActiveSupport
Notifications to catch the param permit error.
2013-06-25 13:44:39 -05:00
Carlos Antonio da Silva
eb0ad1c21a
Merge branch 'master' into rails4
2013-05-07 13:01:34 -03:00
Carlos Antonio da Silva
69f79ad446
Let Devise play with both Rails 3.2 and Rails 4 for now
2013-05-05 19:55:06 -03:00
Carlos Antonio da Silva
a0058d5fbf
Add some spaces, remove comment
2013-05-03 21:52:00 -03:00
Tan Jun Rong
804fbdf6d5
Fix spelling error, 'reseting' to 'resetting'
2013-04-22 22:25:40 +08:00
Tan Jun Rong
9d5a9c8a61
Add ability to override the redirect path after user has reset their password
2013-04-22 20:22:53 +08:00