Commit Graph

1972 Commits

Author SHA1 Message Date
Marcelo Silveira
32991e13c4 Merge and fix conflicts. 2010-01-09 11:22:27 -02:00
José Valim
c4764c931a Bump to 0.8.1 2010-01-08 23:27:15 +01:00
José Valim
35838b02b7 Ensure bcrypt works and move salt generation to encryptors (needed for bcrypt). 2010-01-08 23:19:57 +01:00
José Valim
d00c31314d Bump to 0.8.0 2010-01-07 22:50:01 +01:00
lancecarlson
ab57cdfb4a More DataMapper compatibility 2010-01-07 22:48:23 +01:00
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
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. 2010-01-02 10:12:04 +01:00
Marcelo Silveira
d2fa737aa0 introducing lockable implementation 2010-01-01 17:57:35 -02:00
lancecarlson
15bd4b1956 Copy over class Devise class methods onto EmbeddedDocument modules too 2009-12-28 21:51:24 +08:00
José Valim
42829911b6 New version with small MongoMapper fixes. 2009-12-22 22:04:46 +01: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
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
8b4036feca Allow :controller to be given to render_with_scope. 2009-12-15 18:48:00 +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
f56323e885 Release 0.7.2 2009-12-15 01:05:46 +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
José Valim
d164768a4b Do not freeze arrays, allowing other plugins to extend Devise 2009-12-08 18:29:00 -02:00
José Valim
e51e19c08c Remove deprecation warning, extract SessionSerializer and release new version. 2009-12-07 21:00:44 -02:00
José Valim
35370e9e86 Improve more loading process. 2009-12-07 20:26:00 -02:00
Dimitrij Denissenko
4f5789f8b1 Autoload Devise::Models modules 2009-12-07 20:15:48 +08:00
José Valim
45a5d2b416 Email is always required in validatable. 2009-12-06 17:21:18 -02:00
José Valim
2d772733e7 Allow Inflections to work. 2009-12-02 17:51:34 -02:00
José Valim
96f3c53d6b Add trackable to migrations and release new version. 2009-12-02 16:41: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
41ee6878a8 Release Devise 0.6.2. 2009-11-24 23:20:35 -02:00