2041 Commits

Author SHA1 Message Date
José Valim
6517b358a1 sign_in_count should also be increased when user signs in via password change, confirmation, etc. 2010-01-07 22:41:14 +01:00
José Valim
99694fd159 Updated CHANGELOG. 2010-01-07 22:37:47 +01:00
Julio Capote
3916033058 added bcrypt as one of the encryptors 2010-01-08 05:33:16 +08:00
José Valim
4d8f5ea165 Add an easy way to configure an application to sign in users through "/sign_in".
First, configure your routes:

  map.devise_for :users
  map.sign_in "/sign_in", :controller => "sessions", :action => "new"

Then, in config/initializers/devise.rb:

  config.use_default_scope = true

The default scope is always the first declaration in routes.rb, but if you need
to change it, you can also do it through the initializer:

  config.default_scope = :user
2010-01-06 14:31:00 +01:00
José Valim
27a515fcbf Alloy dummy test app to boot. 2010-01-06 14:03:52 +01:00
José Valim
dc5724c888 Since script/generate devise_install is a required step, move README over there. 2010-01-06 14:00:50 +01:00
Carlos Antonio da Silva
73c0a10af5 Updating docs: timeoutable does not rely on trackable. 2010-01-05 21:12:16 -02:00
José Valim
a789f08d3b Cleaning up README to be more compatible with the latest stuff. 2010-01-05 16:01:16 +01:00
José Valim
543fe077d8 Update to work with Warden 0.8.0. 2010-01-05 13:44:13 +01:00
José Valim
7c67388a90 Release new version. v0.7.5 2010-01-02 10:12:04 +01:00
José Valim
501a89aaea Merge branch 'master' of github.com:plataformatec/devise 2010-01-02 10:07:31 +01:00
José Valim
4c531df108 Remove DeviseMailer from README and set a default value for mailer_sender. 2010-01-02 10:06:26 +01:00
Marcelo Silveira
d2fa737aa0 introducing lockable implementation 2010-01-01 17:57:35 -02:00
rejeep
95989dc2a5 create_table yields a table object. 2009-12-29 02:14:04 +08:00
lancecarlson
15bd4b1956 Copy over class Devise class methods onto EmbeddedDocument modules too 2009-12-28 21:51:24 +08:00
José Valim
6bd88461f6 Update Maintainers and Contributors section. Add Grimen for his work and feedback on Devise plugins. 2009-12-23 13:56:46 +01:00
José Valim
42829911b6 New version with small MongoMapper fixes. 2009-12-22 22:04:46 +01:00
José Valim
f863c3ced5 Support to multiple ORMs in the test suite (rake pre_commit) before commiting. 2009-12-21 21:24:19 +01:00
José Valim
35a8d13369 Tests passing for ActiveRecord and MongoMapper. 2009-12-21 21:10:23 +01:00
José Valim
947de72617 More test files. 2009-12-21 19:57:26 +01:00
José Valim
78303cd5c5 Got another bunch of tests passing with MongoMapper. 2009-12-21 19:57:17 +01:00
José Valim
0819f87255 Test different ORMs 2009-12-21 15:29:58 +01:00
José Valim
e00ae1f86e Extract CookieSerializer from Rememberable. 2009-12-20 21:49:12 +01:00
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
a3e7ea59ae Copy and paste from skype is not as good as it sounds. Removing invisible/odd/strange characters which make Devise fail with Ruby 1.9. 2009-12-19 20:32:32 +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
José Valim
490b20a2b5 Release Devise 0.7.3. 2009-12-16 01:29:19 +01:00
José Valim
436300928b Send :scope to the proper validation. 2009-12-16 01:28:43 +01:00
José Valim
01ca3e54f8 Update CHANGELOG 2009-12-15 18:48:51 +01:00
José Valim
8b4036feca Allow :controller to be given to render_with_scope. 2009-12-15 18:48:00 +01:00
José Valim
2dd0434bd6 Allow SessionsController to be used without authenticatable. 2009-12-15 09:26:11 +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
801722dc87 Updating changelog 2009-12-14 23:03:56 -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
508fb2c7ed Tell about explicit require for ORM. 2009-12-15 01:41:04 +01:00
José Valim
0a5ba20931 Mail views a scoped as well. 2009-12-15 01:32:40 +01:00
José Valim
b842a72e77 Do not care blank passwords on update 2009-12-15 01:20:59 +01:00
José Valim
f56323e885 Release 0.7.2 2009-12-15 01:05:46 +01:00
José Valim
cdd3551a68 Make locale part of the installation process. 2009-12-15 01:04:47 +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
4f4ac1653f Do not check class collisions, we want to be able to scaffold and then apply Devise on top of it. 2009-12-15 00:07:42 +01:00
José Valim
b04241ddff Allow to sign in with two different users in the same functional test with Devise::TestHelpers. 2009-12-14 22:48:15 +01:00
José Valim
b8c216e0db Remove hardcoded sessions. 2009-12-14 22:04:28 +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