Commit Graph

79 Commits

Author SHA1 Message Date
José Valim
e1c2e45f97 Extract Activatable from Confirmable, so if you need to active your account through other means, you can still do so and ensure cherry pick works as expected. 2009-12-20 13:53:53 +01:00
José Valim
f26e6a269f Decouple serializers from Devise modules. You can use any serializer at any time, as long the API required by the serializer is satisfied. Since session serializer is encrypted, it simply stores the id and the resource klass. Cookie is not encrypted, so it creates a random token and store it in the database, so in order to do the token cleanup, you need provide remember_me! and forget_me! methods, as in :rememberable. 2009-12-20 12:31:02 +01:00
José Valim
3432c9eef4 Simplify autoload stack. 2009-12-12 22:52:48 -02:00
José Valim
9095d525b2 Unfreeze Devise::CONTROLLERS as well. 2009-12-09 08:14:50 -02:00
José Valim
3de34c3952 More tweaks for plugin compatibility. 2009-12-08 20:39:38 -02:00
José Valim
5735b21c77 Merge branch 'master' of github.com:plataformatec/devise 2009-12-08 18:29:49 -02:00
José Valim
d164768a4b Do not freeze arrays, allowing other plugins to extend Devise 2009-12-08 18:29:00 -02:00
José Valim
35370e9e86 Improve more loading process. 2009-12-07 20:26:00 -02:00
Dimitrij Denissenko
c711a9d1b5 Use autoload to pre-load components (so they still work when rubygems are disabled) 2009-12-02 02:44:40 +08:00
José Valim
c05b8cf2ce Rename :timeout to :timeout_in and release gem again. 2009-11-25 00:11:49 -02:00
José Valim
0434d72009 Update TODO, CHANGELOG and README. 2009-11-24 15:29:46 -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
Carlos Antonio da Silva
7f4bc8973a Changing default timeout to 30.minutes. 2009-11-23 23:28:04 -02:00
Carlos Antonio da Silva
a88731bb93 Adding i18n flash message when session is expired. 2009-11-23 23:01:01 -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
José Valim
415bcdc722 Added scoped views support. Just turn it on in your Devise.setup. 2009-11-21 20:07:37 -02:00
José Valim
1a8dc7fe37 Allow default scope to beconfigured. 2009-11-19 13:09:05 -02:00
José Valim
4c81ecae53 Mongomapper ORM now converts DateTime to Time. 2009-11-18 09:41:42 -02:00
José Valim
680cb0f95f Added Devise.all to freeze your app strategies and moved friendly_token to Devise module. 2009-11-18 09:26:47 -02:00
José Valim
ffbc9c604d Only redirect if needed. 2009-11-16 14:31:09 -02:00
José Valim
b70b293690 Add authentication_keys. 2009-11-15 03:31:13 -02:00
José Valim
7ffd0900c1 Rely on Warden new serializers. 2009-11-15 00:13:43 -02:00
José Valim
8775f5d61a Tidy up MongoMapper and Schema. 2009-11-13 22:33:00 -02:00
Cyril Mougel
512397b744 add capability to define other orm compatible with Devise. Add MongoMapper support. 2009-11-13 23:54:21 +01:00
José Valim
0be7426847 Use a Rack Middleware to sign in users. 2009-11-13 19:26:33 -02:00
José Valim
6d09eb66cf Tidying up encryptors. 2009-11-10 18:55:13 -02:00
Marcelo Silveira
51f633325e merged with changes introduced in 0.4.3 2009-11-10 13:42:52 -02:00
José Valim
80699c58b4 Ensure user config is not overwriten by default config. 2009-11-09 22:00:44 -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
05678e773f Added support to config.default_url_options. 2009-11-06 20:59:36 -02:00
José Valim
c06d9ad7ae Merge branch 'master' of git@github.com:plataformatec/devise 2009-11-06 14:29:44 -02:00
José Valim
4debe4080b Allow :path_prefix to be given to devise_for. 2009-11-06 14:27:27 -02:00
José Valim
0c088a7420 Renamed mail_sender to mailer_sender. 2009-11-06 09:40:38 -02:00
José Valim
e5be5326b4 Ensure options can be configured even if models were not loaded yet 2009-11-03 22:34:37 -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
b28d7e8b1c Renamed authenticable to authenticatable and added deprecation warnings. 2009-10-30 08:29:10 -02:00
José Valim
9d56aa9603 Allow yml messages to be configured by not using engine locales, which, due to a Rails bug, always have higher priority than application locales 2009-10-30 07:33:55 -02:00
José Valim
eb4437adaf Allow model configuration to be set to nil. 2009-10-29 08:31:14 -02:00
Carlos A. da Silva
385dba551e Adding simple devise generator to create a model, migration and route. 2009-10-23 10:13:23 -02:00
José Valim
a9c058010d Rewrite model_config once again. 2009-10-22 14:19:01 -02:00
Carlos A. da Silva
6f450d7a36 Fix requiring devise mapping, and adding some documentation about routes and mailer setup. 2009-10-21 14:59:12 -02:00
José Valim
a7e25f1b39 Detail loading process. 2009-10-21 00:12:21 -02:00
José Valim
f00d29c97a Devise migratable. 2009-10-21 00:09:26 -02:00
José Valim
cbb4796599 Revert "KISS."
Simpler doesn't work here.

This reverts commit e144ce29c9.
2009-10-20 12:49:49 -02:00
José Valim
e144ce29c9 KISS. 2009-10-20 12:28:33 -02:00
José Valim
44f3b024cb Define Devise.model_config. 2009-10-20 11:55:57 -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
José Valim
d505fd15c0 Small refactoring. 2009-10-20 08:44:21 -02:00