José Valim
454a5ad1ec
Try to fix the build for rails 3.1
2012-05-09 23:41:05 +02:00
José Valim
65ef2592f6
Add a test case to previous commit
2012-05-09 18:27:44 +02:00
José Valim
477d9fbcba
Do not fallback to string on failure app, easier for debugging, closes #1587
2012-01-24 13:46:25 +01:00
José Valim
a949f9eca2
FailureApp shuold always consider Devise.router_name, closes #1544
2012-01-03 20:32:51 +01:00
José Valim
0b55ebb150
Remove 3.0 related code.
2012-01-02 21:04:54 +01:00
José Valim
7b0a8f9bdc
Also try the root route for convenience, closes #1312 .
2011-09-08 08:32:05 +02:00
Emanuel Carnevale
8e12ddf7ed
fix for issues #999 : HTTP_ACCEPT=*/* should redirect to the default location
2011-04-29 13:22:52 +02:00
José Valim
7a2d76d002
Update changelog, improve coverage.
2011-04-17 18:06:29 +02:00
José Valim
add8f8a203
Works on 3.0.4.
2011-02-15 10:27:34 +01:00
siong1987
6e91edd5e3
failure_app redirects to the correct format if it is a non-html request. This is to ensure that firefox redirects the correct format since firefox doesn't inherit accept info. also fix issue 675 that is resurrected by issue 754.
2011-01-11 18:27:14 +08:00
siong1987
379d8c69a5
Issue 675: recall option is now passed for not confirmed email and inactive account.
2010-12-23 02:24:26 +08:00
José Valim
505bd39700
failure_app now properly handles nil request.format
2010-11-09 23:30:53 +01:00
José Valim
835d1044ae
Fix a problem with IE7 headers.
2010-11-08 22:45:42 +01:00
José Valim
c12d75eecf
Do not rely on controller being available in params.
2010-09-25 11:22:18 +02:00
José Valim
31d7020637
Reorganize tests for failure app and add entries to CHANGELOG.
2010-08-31 23:55:25 +02:00
Santiago Pastorino
e582112369
set WWW-Authenticate header on http_auth if request is not xhr
2010-09-01 05:35:40 +08:00
Santiago Pastorino
5fb5efbd42
Returning WWW-authenticate on ajaxs calls depends only on Devise.http_authenticatable_on_xhr config
2010-08-31 23:51:58 +08:00
José Valim
9c5ff02ff1
Update CHANGELOG and tidy up tests.
2010-07-07 21:32:13 +02:00
James Pellow
b9df42c350
Add tests for http_authenticatable_on_xhr option
2010-07-08 03:21:13 +08:00
José Valim
ae6322efb5
No longer retrieve the user from paths, but use the env hash. This change deprecates use_default_scope.
...
If you have non conventional routes and want to specify the scope for a controller, you can do that at the router level:
as :user do
get "/sign_in", :to => "devise/session#new"
end
This is saying: when accessing "/sign_in", devise should use the user scope. Meaning that users signed through that form will be signed to the user scope.
2010-07-06 01:33:32 +02:00
José Valim
bff64a6291
Added navigational formats to specify when it should return a 302 and when a 401, closes #234 and #249 .
2010-05-16 19:13:38 +02:00
José Valim
fd934f1434
Revert "Only triggers http in failure app if devise.authentication_method is :http."
...
It has not fixed the problem it was supposed to fix.
This reverts commit 9d1a52978c
.
2010-04-06 22:36:41 +02:00
José Valim
9d1a52978c
Only triggers http in failure app if devise.authentication_method is :http.
2010-04-06 13:40:39 +02:00
José Valim
23e608e27b
No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3.
2010-04-03 11:43:31 +02:00
José Valim
2b5a068246
Move part of the logic in SessionsController#create to the FailureApp. Whenever Warden is invoked with a :recall, the failure app will recall the chosen controller and the action given to recall.
2010-04-01 17:30:55 +02:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
José Valim
4a0b9c663a
Use metal for Devise::FailureApp. \m/
2010-02-19 09:52:12 +01:00
José Valim
e6e66481b8
Got all tests in test/models and failure app ones passing. 369 tests, 805 assertions, 13 failures, 2 errors.
2010-02-16 17:00:36 +01:00
Carlos Antonio da Silva
099c77e867
Introducing timeoutable to timeout sessions without activity.
2009-11-23 23:01:00 -02:00
José Valim
f3d5c1af22
Allow a strategy to be added after authenticatable one and move store_location to FailureApp.
2009-11-22 00:49:23 -02:00
José Valim
ffbc9c604d
Only redirect if needed.
2009-11-16 14:31:09 -02:00