Commit Graph

33 Commits

Author SHA1 Message Date
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
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 7d14f0bbb9 Allow several authentications to share a common path. 2010-03-29 23:44:47 +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
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 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 35a8d13369 Tests passing for ActiveRecord and MongoMapper. 2009-12-21 21:10:23 +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 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
José Valim 4c7081c2e3 More Datamapper compatibility. 2009-11-24 18:02:36 -02:00
José Valim 371a9bb0d0 Major refactoring. Allow Warden::Manager to be configured through Devise, undeprecate Devise.confirm_within, Devise.pepper and friends and move Rails hooks to their own file. 2009-11-03 09:35:11 -02:00
José Valim e7f809de3c Do not require ActiveRecord to be loaded to use Devise. 2009-10-30 21:51:50 -02:00
José Valim 8c1bab4951 Do not send confirmation e-mail when e-mail changes. 2009-10-30 07:49:18 -02:00
José Valim 3209e7d988 Renamed confirm_in to confirm_within. 2009-10-30 07:23:47 -02:00
Carlos A. da Silva 9643a5fa6d Removing attr_accessible. 2009-10-22 20:18:16 -02:00
Carlos A. da Silva 5631b8dacd Remember the user only if the remember token has not expired. 2009-10-22 20:18:16 -02:00
Carlos A. da Silva 80f3f30704 Creating confirm_in configuration to confirmable and verifying whether the user is active during the configured time without confirming. 2009-10-22 20:18:15 -02:00
Carlos A. da Silva 75e98d3041 Separating perishable token into confirmation and reset_password tokens. Adding confirmation_sent_at attribute. 2009-10-18 09:14:52 -02:00
Carlos A. da Silva 3700e9979c Clearing perishable token when confirming or reseting password. 2009-10-15 17:36:44 -03:00
Carlos A. da Silva 73442abe95 Refactoring confirmable callbacks and updating TODO 2009-10-15 17:05:46 -03:00
Carlos A. da Silva e8611609ac Send confirmation instructions only works if the record is not confirmed. 2009-10-15 16:54:04 -03:00
José Valim 3c5bfc9520 Kick tests back to life. 2009-10-12 08:37:28 -03:00
Carlos A. da Silva 198167d978 Removing default mapping and Updating tests at all 2009-10-10 18:07:25 -03:00
Carlos A. da Silva 4e263b96c9 Updating sessions controller to use resource oriented style. Changing authenticate method to accept a hash of attributes. 2009-10-10 16:20:23 -03:00
Carlos A. da Silva c82cad5887 Ensure user won't be able to sign in after asking for confirmation instructions or updating it's email, forcing to pass the confirmation process. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva b36856a3a1 Creating confirmation controller and integration tests. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva 98fa7bf336 Refactoring confirmable to use hash options instead of parameters as recoverable does. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva ba7e74e1a1 Refactoring confirmable and recoverable to use the same default find method by perishable token. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva 3655fe9096 Restructuring directories for models and mailers. 2009-09-20 10:35:26 -03:00