Rafael Mendonça França
87922e6ea2
Use the Ruby 1.8 hash syntax.
...
Yes we still support Ruby 1.8 😢
Conflicts:
Gemfile.lock
2013-01-28 13:43:16 -02:00
José Valim
5a158f8b24
Require string conversion for all values
2013-01-26 11:58:19 -07:00
José Valim
e137e9d5d1
PathChecker should not attempt to validate invalid routes, closes #1505
2011-12-12 11:35:57 +01:00
José Valim
cd8af3c00c
Fix a bug where passing :format => false to devise_for was permanent, closes #1504
2011-12-12 09:25:43 +01:00
Dmitriy Kiriyenko
86d4ec223d
Fix taking associated failure app from the scope in the given env.
...
There is a delegator to get failure app, introduced in 4629bee and tuned
in 24b26026 . The latter commit introduced a bit of logic, however, no
tests are included into commit. Needless to say this resulted in a
broken code.
The point is that `env["warden.options"][:scope]` returns a string.
However, `Devise.mappings` is a hash with symbol keys.
Adding tests and converting scope to symbol here.
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-12-07 13:14:22 +01:00
lest
37dad2172b
implement dynamic value for timeout_in as a model method instead of a proc
2011-11-25 11:01:42 +03:00
lest
426223dda0
timeout_in option can be a Proc object
2011-11-24 21:42:58 +03:00
Kir
5ba6670164
Added support for rails 3.1 new mass assignment conventions
2011-11-24 12:51:03 +04:00
José Valim
582f00ed95
Devise should not attempt to load OmniAuth strategies. Strategies should be loaded before hand by the developer or explicitly given to Devise.
2011-11-20 19:42:02 +00:00
José Valim
dfb8ff372d
Revert "Fixed require_strategy for google_oauth2 omniauth strategy."
...
This reverts commit 065963f6d3 .
2011-11-20 19:21:08 +00:00
José Valim
1e37e42239
Do not use stored location for sign out.
2011-11-20 19:19:41 +00:00
José Valim
ce1bd142e2
Merge pull request #1438 from hinrik/master
...
Allow specifying a resource_return_to for sign out
2011-11-20 11:17:44 -08:00
Christian Buggle
065963f6d3
Fixed require_strategy for google_oauth2 omniauth strategy.
2011-11-14 19:14:28 +01: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
Rodrigo Flores
3ab68a6896
Some changes on config_test to make it looks like the other ones
2011-11-10 18:39:52 -02:00
José Valim
5c71c1cf19
Improve devise generator tests.
2011-11-10 10:19:57 -02:00
José Valim
dc8aa9ef83
Move param filtering to its own object and make all finder methods pass through it, closes #1413 .
2011-11-10 10:14:02 -02:00
José Valim
0fd5493220
Merge pull request #1326 from sbounmy/master
...
feature added : markerb generator for mails
2011-11-10 03:27:53 -08:00
Rodrigo Flores
5c3f75d90a
Merge pull request #1426 from TamiasSibiricus/omniauth-1.0.0
...
Support OmniAuth 1.0.0 stable
2011-11-10 03:16:53 -08:00
José Valim
16208f7ad7
Rework previous commit to clean up the instance variable dynamically.
2011-11-09 17:00:42 -02:00
artemk
c3880e52e4
#1432 current_user still returning user after sign_out
2011-11-09 20:35:19 +02:00
José Valim
22136a708b
Fix failure_app failing test.
2011-11-07 21:38:31 -02:00
TamiasSibiricus
2a29e87eb9
Update dependencies for OmniAuth 1.0.0 stable
2011-11-07 22:58:33 +02:00
Denis Kiselev
ea9e8c0c9b
Merge remote-tracking branch 'dkastner/omniauth-1.0' into omniauth-1.0.0
...
Conflicts:
test/omniauth/url_helpers_test.rb
2011-11-07 22:26:51 +02:00
José Valim
bad6049d73
Allow :failure_app as configuration in devise_for.
2011-11-07 09:20:09 -02:00
José Valim
4629beecd7
Cache failure_app action builder and pipe call through delegator.
2011-11-07 09:20:09 -02:00
Vasiliy Ermolovich
493ddbd99e
change method should be instance method. closes #1345
2011-11-06 16:15:17 +03:00
Vasiliy Ermolovich
f00d9c5eff
generate migrations with new .change method for rails >= 3.1. closes #1345
2011-11-06 15:47:34 +03:00
José Valim
e9c263c326
Merge pull request #1418 from locomotivecms/simple_scoped_mailer
...
Re-define the devise mailer inside a model
2011-11-06 01:38:08 -08: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
a816e538ab
Fix bug where activation messages were shown first than the credentials error message, closes #1410
2011-11-05 19:47:58 -02:00
did
bbd117bd92
implementation of a much simpler solution
2011-11-05 16:53:27 +01:00
José Valim
d448e7d841
Timeoutable also skips tracking if skip_trackable is given
2011-10-25 18:43:48 +02:00
salidux
d11402612f
test for trackable behind a proxy
2011-10-22 11:57:18 -02:00
José Valim
fac02b58bc
Another attempt to fix the misterious loading helpers bug.
2011-10-18 08:35:50 +02:00
Derek Kastner
c9902f34d1
Intelligent OmniAuth strategy loader
2011-10-17 13:42:40 -04:00
Derek Kastner
8b45c0a856
Correct test for named OmniAuth strategy
2011-10-17 10:09:47 -04: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
Derek Kastner
3f0b5fbd71
Support for OmniAuth 1.0.0
2011-10-14 21:31:17 -04:00
José Valim
990dcc8eef
Try to fix the misterious case where some url helpers are not defined.
2011-10-09 11:50:48 +02:00
Bounmy Stephane
76bff0d4de
removed Gemfile's injection
...
by default : Markerb define then markerb email views generated otherwise
erb
2011-09-30 22:41:02 -07:00
José Valim
59f2767345
Remove deprecated code and tests.
2011-09-29 13:11:12 +02:00
José Valim
bc8fc2d4e4
Allow idempotent API requests, closes #1309 .
2011-09-29 11:35:18 +02:00
Bounmy Stephane
a629654a15
ensure that the gem markerb entry is not duplicated in the gemfile
2011-09-14 20:20:20 -07:00
José Valim
0b9a95e294
Allow --skip-routes to devise generator.
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
José Valim
261c01dfa3
Allow :skip => :all
2011-09-14 16:52:28 -07:00
Bounmy Stephane
8067022d98
added injection of markerb in Gemfile
2011-09-13 22:50:39 -07:00
Bounmy Stephane
72ba56b071
generate markerb views with "--markerb" instead of "-m markerb"
2011-09-13 21:46:46 -07:00