José Valim
1e37e42239
Do not use stored location for sign out.
2011-11-20 19:19:41 +00:00
Hinrik Örn Sigurðsson
9ea7249368
Allow specifying a resource_return_to for sign out
...
It was impossible to accomplish this by providing a
custom #after_sign_out_path_for in ApplicationController because the
session gets destroyed before it is called. Furthermore,
resource_return_to is now used by default if it exists, so users won't
have to provide a custom #after_sign_out_path_for in that case.
2011-11-13 20:27:08 +00:00
José Valim
16208f7ad7
Rework previous commit to clean up the instance variable dynamically.
2011-11-09 17:00:42 -02:00
José Valim
1bace6df4e
Be sure to expire cached devise data after sign in, closes #1411
2011-11-05 20:11:09 -02:00
José Valim
2a5ad4664b
Change all paranoid settings to behave as success instead of as failure, closes #1375 .
2011-10-15 10:52:00 +02:00
Jim Herzberg
b98720d324
jh - reworking paranoid mode in passwords controller
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-15 10:45:33 +02:00
José Valim
bba6562dcc
after_sign_in_path_for now redirects to session[scope_return_to] if any value is stored in it
2011-09-29 13:07:13 +02:00
José Valim
15b76e93d1
The default here is now DELETE.
2011-09-27 10:42:08 +03:00
José Valim
ab9d856568
Add a deprecation warning for previous controller authorization style.
2011-09-22 11:51:09 +02:00
José Valim
335d36088f
Instead of depending on mapping.controller[:session], make it explicit when we allow auth from params.
2011-09-14 16:52:28 -07:00
José Valim
98acc84111
Allow options to be passed to authenticate_user!
2011-09-14 16:52:28 -07:00
Rémy Coutable
ebbabaea5b
After a password reset, don't show "You are now signed in." if the user can't be signed-in anyway.
2011-09-01 00:24:10 +02:00
Ches Martin
3cedba1de8
Fix optional enforcement of particular authentication keys
...
Documentation states that authentication_keys should accept a hash with
values indicating whether or not each key is required. This was added in
b2066cc2 but tests only covered request_keys, and 29afe2d2 later broke
it with a << array operator.
2011-08-06 20:07:49 +07:00
José Valim
0f8f786f9f
Use a default key on inactive reason.
2011-08-02 11:18:23 +03:00
hck
7264bb55b2
added I18n support to inactive_message in RegistrationsController
2011-08-02 08:11:25 +03:00
Andriy Tyurnikov
502dae3c1f
div instead of p in forms
2011-07-14 15:43:10 +03:00
Simon Ernst
517343ddb5
Add ability to override redirect_to path after account confirmation.
2011-07-08 11:21:01 +02:00
Guillaume Hain
e2895239d8
Internationalization of resource_name in DeviseHelper#devise_error_messages!
2011-06-27 20:31:03 +02:00
José Valim
42f0285278
Extract mailer functionality, closes #1164
2011-06-27 12:13:00 -03:00
José Valim
5645d733ba
Update CHANGELOG.
2011-06-23 09:22:30 -03:00
José Valim
42b07f1f47
Merge remote branch 'origin/issue_json_response'
...
Conflicts:
app/controllers/devise/passwords_controller.rb
2011-06-23 09:16:04 -03:00
Rodrigo Flores
308238ab42
Not responding the object on creating unlockable requests
2011-06-22 23:04:55 -03:00
Rodrigo Flores
2ae2fdc9f8
Returning an empty JSON for creating confirmation requests
2011-06-22 21:27:20 -03:00
Rodrigo Flores
41bb96be5d
Returning empty json and empty xml
2011-06-22 19:38:21 -03:00
José Valim
04b614ce10
Edited app/controllers/devise/passwords_controller.rb via GitHub
2011-06-22 11:03:08 -07:00
Rodrigo Flores
b58e0ef991
Removed useless blank lines
2011-06-22 12:52:11 -03:00
Rodrigo Flores
6199252011
Refactored paranoid mode actions for it to appear once
2011-06-22 12:52:11 -03:00
Rodrigo Flores
40c0a7b50b
Added paranoid mode to lockable
2011-06-22 12:52:11 -03:00
Rodrigo Flores
225c89fbf1
Paranoid mode on confirmable
2011-06-22 12:52:10 -03:00
Rodrigo Flores
8b54ff699f
Refactoring passwords controller
2011-06-22 12:52:10 -03:00
Rodrigo Flores
7d160650b8
Using the same url in success and failure
2011-06-22 12:52:10 -03:00
Rodrigo Flores
803e46cda7
Refactoring the paranoid controller
2011-06-22 12:52:10 -03:00
Rodrigo Flores
004fe2ad12
Paranoid mode for recoverable
2011-06-22 12:50:34 -03:00
naomi
d56741ca4f
added ability to override redirect_to path after sending reset password instructions
2011-05-13 11:39:11 -05:00
Chase DuBois
fd8e34650e
Make copy of resource only for update action
2011-04-25 15:49:59 +08:00
José Valim
29afe2d21c
Other minor improvements in the REST code.
2011-04-19 08:36:52 +02:00
José Valim
4a4dcb30ef
sessions/new also responds to xml and json now
2011-04-18 09:56:24 +02:00
José Valim
c6dd846718
Move the catch to the test level.
2011-04-17 19:37:19 +02:00
John Wilger
0e904dda79
Make it possible to unit-test extensions to Devise::SessionsController
...
This time with tests
2011-04-15 16:37:15 +08:00
Hiroki Yoshioka
bd9f148d24
Allow to override the path after resending confirmation instructions.
2011-04-15 16:32:41 +08:00
José Valim
5b94d9b803
Refactor a bit navigational format responses, to not call to_sym and reuse the request_format logic from FailureApp.
2011-03-30 14:09:12 +02:00
Prem Sichanugrist
97f0bacfa0
Add support for non-navigational formats in PasswordsController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:39:08 +02:00
Prem Sichanugrist
210bc6aa66
Add support for non-navigational formats in UnlocksController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:38:16 +02:00
Prem Sichanugrist
8170d5e340
Add support for non-navigational formats in ConfirmationsController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:38:00 +02:00
Prem Sichanugrist
6225902034
Add support for non-navigational formats in RegistrationsController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:37:41 +02:00
Prem Sichanugrist
0487e9eafe
Add support for destory_user_session_path in another non-navigational formats such as JSON and XML
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:36:50 +02:00
José Valim
02ae0c22ef
Update CHANGELOG.
2011-03-25 15:40:46 +01:00
José Valim
63b72cd512
Edited app/helpers/devise_helper.rb via GitHub
2011-03-06 05:25:09 -08:00
Vinicius Baggio
352edc024b
Cleaning up test helpers related to OmniAuth.
...
Developers should rely on OmniAuth's new testing API. Check
https://github.com/intridea/omniauth/wiki/Integration-Testing
for more details.
2011-02-24 16:50:22 -03:00
José Valim
aac9c40cba
Ensure after hooks are called on registrations controller, closes #852
2011-02-15 09:41:35 +01:00