Thibaud Guillaume-Gentil
c32cb3da6c
Avoid BCrypt::Errors::InvalidSalt: invalid salt
...
when password_salt is nil.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 09:29:35 +02:00
José Valim
c5999c8f61
Tests green on mongoid as well.
2010-07-26 20:25:02 +02:00
José Valim
81620fecab
More about extend remember period feature.
2010-07-23 23:57:31 +02:00
José Valim
058d433f28
Add extend_remember_period, closes #340 .
2010-07-23 16:32:22 +02:00
José Valim
b4794e041b
Save confirmation token to the database, if one does not exist but was requested, closes #377
2010-07-14 18:03:34 +02:00
José Valim
7774accb6c
Remove data_mapper support.
...
Devise 1.1.0 will be released soon. This new version will support activerecord and mongoid as default ORMs. From now on, Devise will prefer ORM extensions as gems since this is the best way to handle dependencies.
For example, to allow Devise to work with Datamapper, it requires at least activemodel, dm-rails and dm-timestamps. If the ORM support comes from Devise gem, we cannot add dm-rails and dm-timestamps as dependencies, relying on the developer and documentation to find these out and install them.
Other ORMs may still be added to Devise, as long as they are supported by the community, extend Devise test suite to have all tests passing and they necessarily use ActiveModel::Validations.
2010-07-04 17:22:57 +02:00
Trevor Turk
aefcd53765
more tests for remember_across_browsers
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 12:42:59 +02:00
Trevor Turk
8824b767f3
remember_across_browsers option for rememberable module
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 12:42:42 +02:00
Postmodern
29ba790e07
Do not use ActiveRecord only methods in tests.
2010-06-19 17:30:10 -07:00
José Valim
0333caeb92
Make bcrypt the default encryptor and automatically add a pepper on generation.
2010-06-12 14:46:55 +02:00
José Valim
870912d458
beta 4 works, yay.
2010-06-09 01:27:38 +02:00
Paul Rosania
592fa59e88
Automatically create the confirmation_token when email is sent for optionally confirmable models
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 14:54:05 +02:00
Paul Rosania
02c2df65cd
Mark confirmable roles as active when confirmation_required? is false
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 14:53:08 +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
0d3c6b9d99
Small changes to token_authenticatable.
2010-04-06 13:26:56 +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
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
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
Jacques Crocker
e127463ac8
Adding Mongoid 2.0 Support, Removing MongoMapper for now
2010-03-26 13:37:38 -07:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
José Valim
ac742e3271
Clean up lockable and class methods API.
2010-03-10 16:13:54 +01:00
José Valim
33941d1f62
All tests passing (except two which are errors in Rails). Now generators and initialization process.
2010-02-16 21:23:58 +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
José Valim
b3e11c5aca
Got another bunch of tests passing on Rails 3. 369 tests, 731 assertions, 33 failures, 53 errors.
2010-02-16 14:57:10 +01:00
José Valim
732e31528e
More changes in update_with_password.
2010-02-08 23:14:03 +01:00
José Valim
d7db5b1eea
More work on edit.
2010-02-08 20:38:47 +01:00
Carlos Antonio da Silva
9856646fac
Merge with master
2010-02-06 09:24:00 -02:00
José Valim
1cf4dc798d
Add Http Basic Authentication support.
2010-02-06 01:33:32 +01:00
Carlos Antonio da Silva
21359fb433
Refactoring a bit models and lockable. Also remove devise :all deprecation.
2010-02-04 20:09:53 -02:00
José Valim
3781a0f47b
Tidy up token authentication implementation.
2010-02-02 13:21:00 +01:00
Jonas Grimfelt
e1440fb430
Initial support for authorization using "authentication token" (a.k.a. "single access token") - new module. Corresponding changes to Devise core to hook events like "after_changed_password" (only one added now - only one that makes much sense for latest module) easily. Unit and integration tests included. NOTE: One failing test for hooking Warden::Manager.after_authentication - gets ignored for some reason.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-02 12:36:44 +01:00
Jonas Grimfelt
0c7c762c16
Fixed some Ruby 1.9 issues/bugs.
2010-01-21 16:06:19 +08:00
José Valim
2afad49a96
Bring rememberable back.
2010-01-14 15:47:14 +01:00
José Valim
f46d1b1d81
Add support to Warden 0.9.0.pre
2010-01-14 13:38:02 +01:00
Marcelo Silveira
d2fa737aa0
introducing lockable implementation
2010-01-01 17:57:35 -02:00
José Valim
35a8d13369
Tests passing for ActiveRecord and MongoMapper.
2009-12-21 21:10:23 +01:00
José Valim
78303cd5c5
Got another bunch of tests passing with MongoMapper.
2009-12-21 19:57:17 +01:00
José Valim
90c33a4e05
Revert earlier commit. Do care about blank passwords, otherwise update_with_password is useless.
2009-12-16 17:34:09 +01:00
Carlos Antonio da Silva
afab12fa37
Adding old_password reader method to authenticatable
2009-12-14 23:25:45 -02:00
Carlos Antonio da Silva
82ab50f774
Merge and fix conflicts.
2009-12-14 23:02:10 -02:00
Carlos Antonio da Silva
72021348d3
Adding update_with_password to authenticable. Updates the record only when the :old_password is valid.
2009-12-14 22:55:55 -02:00
José Valim
b842a72e77
Do not care blank passwords on update
2009-12-15 01:20:59 +01:00
José Valim
9a658d5e74
Added skip_confirmation! It skips confirmation token generation, e-mail sending and automatically sets confirmed_at.
2009-12-15 00:30:28 +01:00
José Valim
358a2389ce
Rename reset_confirmation! to resend_confirmation!
2009-12-15 00:16:22 +01:00
José Valim
c05b8cf2ce
Rename :timeout to :timeout_in and release gem again.
2009-11-25 00:11:49 -02:00
José Valim
30d6d37bab
Refactor tests a little bit and gain more speed (from 12s to 9s in my machine).
2009-11-24 23:19:12 -02:00