José Valim
dac7887d7c
Allow the dummy application in test/rails_app to boot.
2010-04-01 12:49:11 +02:00
Fred Wu
42d06a241b
Added support for HAML 3+.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-01 00:14:16 +02:00
José Valim
3d1a04fd83
Fix warden configuration.
2010-03-31 22:04:48 +02:00
José Valim
1d65a76cf3
Move remember_me hook inside strategies.
2010-03-31 21:43:19 +02:00
José Valim
015c74e734
Use message verifier in cookies. Previous implementation allowed brute force attacks by cookies. Even though it is impossible for the brute force attack to succeed, the current implementation blocks the attacker even before hitting the database.
2010-03-31 13:31:45 +02:00
José Valim
6cc32db2dd
Add lock_strategy.
2010-03-31 11:54:11 +02:00
José Valim
597a930c74
We do not use t() helpers in views, so there is no reason why this particular one should use them.
2010-03-30 20:06:56 +02:00
José Valim
d7f614b726
Make config.devise available on config/application.rb
2010-03-30 11:08:16 +02:00
José Valim
e04c5ba977
More work with unlock_strategy equals to none.
2010-03-30 01:58:06 +02:00
José Valim
4fc41dd68a
Regenerate gemspec.
2010-03-30 01:50:54 +02:00
José Valim
22e1fa0cb9
Small cleanup.
2010-03-30 00:29:57 +02:00
Josh Kalderimis
a6a018253e
minor change to content type checking to make it more flexible when utf8 is returned
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-30 00:23:46 +02:00
José Valim
81926c2cd2
Allow :unlock_strategy to be :none.
2010-03-30 00:07:11 +02:00
José Valim
7d14f0bbb9
Allow several authentications to share a common path.
2010-03-29 23:44:47 +02:00
José Valim
e038d82410
Merge branch 'master' of github.com:plataformatec/devise
2010-03-29 21:02:56 +02:00
José Valim
65b8908960
Create authenticatable base model and strategy.
2010-03-29 20:52:48 +02:00
José Valim
1c5d4771ff
Initial work on making the authentication stack more flexible.
2010-03-29 16:13:19 +02:00
José Valim
604b7ef61c
Move http authenticatable response to failure app.
2010-03-29 15:16:14 +02:00
José Valim
0d704c02ca
Fix link on README.
2010-03-29 00:53:51 -07:00
Jacques Crocker
1c39590e20
Devise / DataMapper updates
...
allows devise to work with the upcoming dm-validation changes
2010-03-28 20:53:22 -07:00
Jacques Crocker
6d31e368bf
Use persisted? instead of new_record?
...
In order to be more ActiveModel compliant, lets use persisted? whereever we can. Particularly for datamapper, new_record? causes api warnings. Better to stick to the ActiveModel api I think.
2010-03-28 20:53:13 -07:00
José Valim
63deb0e80a
Update CHANGELOG.
2010-03-28 23:15:45 +02:00
José Valim
2a082f3e4c
Fix some unlockable bugs.
2010-03-28 23:09:28 +02:00
Josh Kalderimis
97b7ba8659
added imapable to the README
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-28 22:02:38 +02:00
José Valim
bc00a13a3a
Update gemspec.
2010-03-28 15:24:21 +02:00
José Valim
033db1ca7c
Do not depend on silence_missing_strategies! anymore. This speeds up strategies matching because we don't need to check if the model duck types to the strategy and it doesn't trigger uneeded strategies.
2010-03-28 14:55:05 +02:00
José Valim
066c6e8771
Do not force halt on authenticatable. This allows other strategies (like devise_imapable or even devise_facebook_connectable) to hook into sessions controller as well.
...
Those strategies should follow the same convention, allowing them to be cascated.
2010-03-28 12:52:12 +02:00
José Valim
96c8238b02
Remove duplicated method.
2010-03-28 07:24:56 +02:00
José Valim
4b7a9204b8
More configuration to validatable.
2010-03-28 07:19:23 +02:00
José Valim
ea71be8d2a
More compatibility with Rails master.
2010-03-28 07:15:52 +02:00
Jacques Crocker
6bcf18b04f
Mongoid support cleanup
...
moving test specific == override part of the test models and not part of the Compatibility module included in all Mongoid docs. Made sure that nothing in devise itself uses this == between 2 different models, its purely for assert_equal
2010-03-27 16:16:36 -07:00
Jacques Crocker
bb504e08aa
Initial Datamapper test suite
...
Test suite runs, however there's still some failing tests. This allows us to at least have a working test suite so they can fix these datamapper spec failures individually.
2010-03-27 16:15:23 -07:00
Jacques Crocker
afe6a8c8c8
Merge branch 'master' of git://github.com/plataformatec/devise
2010-03-27 16:10:30 -07:00
José Valim
a53cc74fd9
Revert "Move password_required? to authenticatable. This allow you to reuse it when building your own validations."
...
This reverts commit 386e7be823 .
2010-03-27 12:31:38 +01:00
Jacques Crocker
fd035b841b
Additional configuration for validatable
...
Added the ability to customize password length (via Devise.password_length) and the regular expression used for validating email (via Devise.email_regex)
2010-03-26 13:52:12 -07:00
Jacques Crocker
e127463ac8
Adding Mongoid 2.0 Support, Removing MongoMapper for now
2010-03-26 13:37:38 -07:00
José Valim
bd4b29c0fd
sign_in_count shoud default to zero.
2010-03-26 12:56:24 +01:00
Carlos Antonio da Silva
6f41284714
Merge branch 'master' of github.com:plataformatec/devise
2010-03-26 08:44:42 -03:00
Carlos Antonio da Silva
a5ba2ac1a8
Use prepend_before_filter in require_no_authentication.
...
We need to be sure require_no_authentication runs before other user filters that may call some Devise helper (ie current_xxx).
Conflicts:
app/controllers/devise/passwords_controller.rb
app/controllers/devise/registrations_controller.rb
app/controllers/devise/sessions_controller.rb
app/controllers/devise/unlocks_controller.rb
lib/devise/controllers/internal_helpers.rb
test/rails_app/app/controllers/application_controller.rb
2010-03-26 08:26:51 -03:00
José Valim
386e7be823
Move password_required? to authenticatable. This allow you to reuse it when building your own validations.
2010-03-26 12:19:01 +01:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
Andreas Haller
5c19605d6f
Fixed test: calling Mail::Body#encoded to get a String (Rails 3)
...
From Rails' CHANGELOG
… Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 11:00:46 +01:00
José Valim
e136573905
Improve workflow with devise generator.
2010-03-26 10:36:15 +01:00
José Valim
ae729aedc3
Allow devise to work with association proxies.
2010-03-26 10:19:31 +01:00
José Valim
12b64c691f
Add support to multipart e-mails (just put them in your mailers folder) and headers customization by simply defining headers_for in your model.
2010-03-26 10:01:24 +01:00
Josh Kalderimis
4d3a3ceb43
added test to confirm order in ALL is being adhered to when adding and including module in model
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 09:31:25 +01:00
José Valim
c76df8239f
Require no authentication on unlockable.
2010-03-23 17:56:32 +01:00
José Valim
28a6be456a
Require files before monkey patching them.
2010-03-23 16:28:17 +01:00
José Valim
76e45ecb12
Bring unloadable back.
2010-03-23 00:39:27 +01:00
José Valim
8fbbe34bdd
Fix routes generation on Rails master.
2010-03-16 14:48:30 +01:00