Marcelo Silveira
6c4274fae6
fixing mongo tests
2010-01-09 13:16:07 -02:00
Marcelo Silveira
9c4ddc6465
- Maximum attempts changed from 5 to 20
...
- Lockable is not turned on by default
- Fixed lockable incompatibilities with latest commits
2010-01-09 11:41:28 -02:00
Marcelo Silveira
32991e13c4
Merge and fix conflicts.
2010-01-09 11:22:27 -02: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
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
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
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
Marcelo Silveira
d2fa737aa0
introducing lockable implementation
2010-01-01 17:57:35 -02: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
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
90c33a4e05
Revert earlier commit. Do care about blank passwords, otherwise update_with_password is useless.
2009-12-16 17:34:09 +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
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
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
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
2d772733e7
Allow Inflections to work.
2009-12-02 17:51:34 -02:00
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
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
6c3bebe630
Make mocha dependency explicit.
2009-11-24 12:54:18 -02:00
José Valim
076ce9add8
Improve timeoutable tests a bit.
2009-11-24 11:52:13 -02:00
José Valim
691055cf06
Fix timeout tests.
2009-11-24 11:00:35 -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
91c184d69f
Fixing tests after merge
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
fc89db636a
Refactoring tests with I18n.
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
Carlos Antonio da Silva
099c77e867
Introducing timeoutable to timeout sessions without activity.
2009-11-23 23:01:00 -02:00
José Valim
39cf987b6b
Do not include :authenticatable by default (deprecation warning added) and release Devise 0.6.0.
2009-11-22 23:14:45 -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
f3d5c1af22
Allow a strategy to be added after authenticatable one and move store_location to FailureApp.
2009-11-22 00:49:23 -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
eb335234d4
Release Devise 0.5.5 bringing back Ruby 1.8.6 compatibility.
2009-11-19 20:55:40 -02:00
Carlos Antonio da Silva
6829619330
Allow overwriting find for authentication method.
2009-11-19 13:53:57 -02:00
José Valim
1a8dc7fe37
Allow default scope to beconfigured.
2009-11-19 13:09:05 -02:00
José Valim
d445b4beb9
Create after_sign_in_path_for and after_sign_out_path_for hooks and sign_in_and_redirect and sign_out_and_redirect helpers.
2009-11-19 11:16:31 -02:00
José Valim
de40777334
Extract common logic into the same method.
2009-11-16 15:07:01 -02:00