José Valim
c146cad448
Ensure inactive user cannot sign in.
2010-02-05 21:36:19 +01:00
José Valim
a9e2337aeb
Change EMAIL_REGEXP so it can be used in javascript.
2010-02-02 13:28:47 +01:00
José Valim
3781a0f47b
Tidy up token authentication implementation.
2010-02-02 13:21:00 +01:00
Jonas Grimfelt
4878bdb60b
Second version of token_authenticatable reflecting feedback: Nuked all hook-stuff. Should be easy to custom-reset authentication tokens by inheritance.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-02 12:37:06 +01:00
Jonas Grimfelt
e1440fb430
Initial support for authorization using "authentication token" (a.k.a. "single access token") - new module. Corresponding changes to Devise core to hook events like "after_changed_password" (only one added now - only one that makes much sense for latest module) easily. Unit and integration tests included. NOTE: One failing test for hooking Warden::Manager.after_authentication - gets ignored for some reason.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-02 12:36:44 +01:00
José Valim
345bf159e2
Add latest commities entries to CHANGELOG.
2010-01-21 09:15:07 +01:00
Jonas Grimfelt
f50ec773b2
New convenient helper method for extending Devise with additional modules: Devise::add_module.
2010-01-21 16:06:17 +08:00
José Valim
ef25da992c
Use an OrderedHash to fix problems with test suite working in some machines but no in others.
2010-01-16 14:32:52 +01:00
José Valim
2afad49a96
Bring rememberable back.
2010-01-14 15:47:14 +01:00
José Valim
f46d1b1d81
Add support to Warden 0.9.0.pre
2010-01-14 13:38:02 +01:00
José Valim
efc0ae230a
Deprecate :all.
2010-01-13 19:45:24 +01:00
José Valim
b581f86317
DRY up controllers.
2010-01-13 18:12:13 +01: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
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
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
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