Commit Graph

51 Commits

Author SHA1 Message Date
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
José Valim
4c7081c2e3 More Datamapper compatibility. 2009-11-24 18:02:36 -02:00
José Valim
f9c5dd6a79 Added trackable for sign_in_count, sign_in_at and sign_in_ip. 2009-11-24 15:18:42 -02:00
José Valim
52885725a9 Assert validations API inside validatable module. 2009-11-24 13:56:54 -02:00
José Valim
691055cf06 Fix timeout tests. 2009-11-24 11:00:35 -02:00
Carlos Antonio da Silva
40aaa98de9 Refactoring timeoutable module and confirmable tests. 2009-11-23 23:01:00 -02:00
Carlos Antonio da Silva
099c77e867 Introducing timeoutable to timeout sessions without activity. 2009-11-23 23:01:00 -02:00
José Valim
a016819de8 Ensure all encryptor returns a symbol. Get the class using encryptor_class. 2009-11-22 22:32:54 -02:00
Carlos Antonio da Silva
6829619330 Allow overwriting find for authentication method. 2009-11-19 13:53:57 -02:00
José Valim
4f6dfefe0e Sanity check the serialized class. 2009-11-15 11:17:40 -02:00
José Valim
b70b293690 Add authentication_keys. 2009-11-15 03:31:13 -02:00
Marcelo Silveira
262a33f71f finished implementation of encryptors and created encryptors for clearance, authlogic and restful-authentication 2009-11-10 13:27:43 -02:00
Marcelo Silveira
fdea519df8 moved password encryption out of Authenticatable to allow custom encryptions for people coming by with an existent users table 2009-11-09 18:43:21 -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
dc86a571ae [DEPRECATION] Notifier is deprecated, use DeviseMailer instead. Remember to rename app/views/notifier to app/views/devise_mailer and I18n key from devise.notifier to devise.mailer. 2009-11-02 23:14:27 -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
b28d7e8b1c Renamed authenticable to authenticatable and added deprecation warnings. 2009-10-30 08:29:10 -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
697a17686e Updating model_config and require confirmable hook with last changes. 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
22dd5f5669 Fix encrypt password tests. 2009-10-20 13:31:34 -02:00
Carlos A. da Silva
342f948bc8 Adding pepper and stretches configuration per model, and globaly setup through Devise.pepper and Devise.stretches 2009-10-20 11:17:40 -02:00
Carlos A. da Silva
9720c36380 Updating tests and fix rememberable serialize_from_cookie. 2009-10-20 08:59:01 -02:00
Carlos A. da Silva
28a7f78fba Creating rememberable module. 2009-10-20 00:31:33 -02:00
Carlos A. da Silva
29ea916e9f Fix clearing reset password token while reseting password. 2009-10-18 09:54:53 -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
Carlos A. da Silva
417f273a81 Moving perishable inclusion to active_record devise, to include just once. Also refactor confirm! method. 2009-10-15 16:43:30 -03:00
Carlos A. da Silva
7f91651d0c Updating tests to reflect salt and password changes. 2009-10-15 16:19:03 -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
aaddc05f99 Moving modules inside respective Models module. 2009-10-09 10:37:36 -03:00
Carlos A. da Silva
c0b272a49d Refactoring generating salt and encrypting password only before saving the record. 2009-10-09 07:36:13 -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
3cc61e4a96 Creating stretches to force encrypting password as many times as possible. 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
095f7026cb Refactoring recoverable tests to access database only when needed. 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
97ae1795bd Recoverable class method reset_password should use a bang! 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
cf1ea9ab86 Cleaning up recoverable methods, changing to use a hash of options instead of default parameters. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
f8f8ba06a1 Changing SECURE_AUTH_SITE_KEY to mattr_accessor, adding gitignore and removing log files from test app. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
7ce49cbbe8 Configuring session and password controllers as engine, and getting integration tests from devise example app. 2009-10-09 07:36:12 -03:00