Commit Graph

256 Commits

Author SHA1 Message Date
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
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
f5fbc173d3 Refactor common initialization with error. 2009-11-24 21:35:07 -02:00
José Valim
4c7081c2e3 More Datamapper compatibility. 2009-11-24 18:02:36 -02:00
José Valim
3272438671 Fix small typo on docs. 2009-11-24 15:46:54 -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
José Valim
52885725a9 Assert validations API inside validatable module. 2009-11-24 13:56:54 -02:00
José Valim
ff47abe13e Extract valid_for_authentication to allow overwriting. 2009-11-24 12:53:03 -02:00
José Valim
691055cf06 Fix timeout tests. 2009-11-24 11:00:35 -02:00
Carlos Antonio da Silva
15ba859454 Releasing Devise 0.6.1 2009-11-24 00:09:34 -02:00
Carlos Antonio da Silva
7933d203e3 Merge branch 'session_timeout' 2009-11-23 23:34:38 -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
4ba34290c7 Improving docs about timeoutable 2009-11-23 23:01:01 -02:00
Carlos Antonio da Silva
10a70b8192 Updating timeoutable with last devise changes. 2009-11-23 23:01:00 -02:00
Carlos Antonio da Silva
40aaa98de9 Refactoring timeoutable module and confirmable tests. 2009-11-23 23:01:00 -02:00