Jacques Crocker
57712737b2
Fixing up devise generator for mongoid and datamapper. Will insert devise configuration after the module include so that it works, closes #226 .
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-25 09:47:14 +02:00
José Valim
d750b48879
Include model_session helpers in view, closes #227
2010-04-25 09:40:07 +02:00
José Valim
708fe78d86
Ensure password confirmation is always required, closes #228
2010-04-25 09:38:56 +02:00
hpoydar
c9fe7900c3
Removed references to mongo_ext, since mongoid now uses bson_ext
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-23 13:50:41 +02:00
José Valim
4da63c5395
Ensure routes are loaded before application classes are eager loaded, closes #212 .
2010-04-22 19:59:52 +02:00
José Valim
b5f892bcdb
No need to check if AR is defined.
2010-04-20 17:22:16 +02:00
José Valim
3135487931
More more logic to Authenticatable.
2010-04-16 22:00:06 +02:00
José Valim
9291ab55b8
Fix compatibility with Mongoid and Datamapper, closes #206 .
2010-04-15 21:39:56 +02:00
José Valim
ca6248cfd3
Release devise 1.1.rc1.
2010-04-15 08:45:33 +02:00
José Valim
b2a50db1df
Fix a bug with STI. Closes #195 .
2010-04-15 08:34:57 +02:00
José Valim
6bd0c7fc2b
:as and :scope in routes is deprecated. Use :path and :singular instead. Closes #199 .
2010-04-15 08:21:13 +02:00
José Valim
4e674ab9a0
No need to wait for routes finalization to include UrlHelpers, closes #200 .
2010-04-14 08:59:09 +02:00
José Valim
8db559148c
All tests green on latest Rails beta.
2010-04-13 23:28:13 +02:00
José Valim
f3d654a733
:activatable is added by default.
2010-04-13 13:35:34 -07:00
José Valim
32d37cebed
Properly use scope in views generator.
2010-04-12 04:39:16 -07:00
José Valim
d2ebaa43ec
Be more helpful in the sign up message for new comers.
2010-04-09 23:13:34 +02:00
José Valim
045af3a614
Change README shown in devise_install.
2010-04-09 09:50:45 -07: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
22392f23f2
Authenticatable shuold be loaded at the end.
2010-04-06 17:27:49 +02:00
José Valim
c07b5ae858
:activatable is included by default in your models. If you are building a strategy for devise, you now need to call validate(resource), since Devise has now a default API to validate resources before and after signing them in. You can still use other Warden::Strategies with Devise, but they won't work with a few modules like unlockable (they never did, but now we have a single point to make it work).
2010-04-06 16:34:22 +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
0d3c6b9d99
Small changes to token_authenticatable.
2010-04-06 13:26:56 +02:00
José Valim
1591294b7a
Compatibility with Rails beta 3.
2010-04-05 11:46:26 +02:00
José Valim
d3c31ef16d
Releasing 1.1.rc0 which is compatible with Rails 3.0.0.beta2. There is just one known bug with this new Rails version, which means we are close to a final Devise 'Rock Your Socks Off 1.1' version.
2010-04-03 13:20:00 +02:00
José Valim
b974b7bc78
Move failure messages from devise.sessions to devise.failure.
2010-04-03 13:11:45 +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
0f7b311171
Add lockable to migration.
2010-04-02 20:36:27 +02:00
postmodern
27c4280eca
Expend the length of the encrypted_password field to 128 to allow storing BCrypt or SHA512 passwords.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-02 20:31:33 +02:00
José Valim
1ba525a0e9
Tidying up some lose ends and adding more docs.
2010-04-01 22:11:59 +02:00
José Valim
f5d01c217d
TokenAuthenticatable now works with HTTP Basic Auth by default (take a look at Highrise API for a good example). This basically allows you to pass the authentication token as HTTP Basic Auth username.
2010-04-01 19:09:33 +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
13b8ddf54c
Ensure customs pass through sessions_controller.
2010-04-01 14:00:21 +02:00
José Valim
16666b7587
Get rid of flash hook and clean up passwords after registration.
2010-04-01 13:23:49 +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
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
22e1fa0cb9
Small cleanup.
2010-03-30 00:29:57 +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
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
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
2a082f3e4c
Fix some unlockable bugs.
2010-03-28 23:09:28 +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