José Valim
879b64edc9
Release v1.1.1.
2010-07-27 16:29:45 +02:00
José Valim
5ef88a8fe6
Fix generators bug.
2010-07-27 16:19:11 +02:00
José Valim
81620fecab
More about extend remember period feature.
2010-07-23 23:57:31 +02:00
Trevor Turk
2939a61a49
documentation tweaks for extend_remember_period
2010-07-24 01:06:10 +08:00
José Valim
058d433f28
Add extend_remember_period, closes #340 .
2010-07-23 16:32:22 +02:00
Stefan Huber
5aeb8cf1cf
small documentation fix
2010-07-23 01:33:08 +08:00
José Valim
abfd7e5a4b
Warn in case you are using the previous session schema, closes #386
2010-07-19 00:11:51 +02:00
José Valim
869c658e3b
Always loop before generating a token.
2010-07-18 23:32:56 +02:00
José Valim
5e64699a5f
Add filters as convenient default.
2010-07-18 12:17:04 +02:00
Jinzhu
aecc014d33
Attributes for devise generator
2010-07-17 15:09:01 +08:00
José Valim
55fd7e3b0a
Consider ApplicationController url_options in for PathChecker.
2010-07-16 08:40:21 +02:00
José Valim
b4794e041b
Save confirmation token to the database, if one does not exist but was requested, closes #377
2010-07-14 18:03:34 +02:00
Carlos Antonio da Silva
4f6113ab68
Fix docs about after_sign_in_path_for and routes
2010-07-13 22:22:26 -03:00
José Valim
05d23f1a00
Do not check the constant, otherwise class renaming will trigger errors as well.
2010-07-12 10:42:02 +02:00
José Valim
e567c00dd8
Store classes as string in session, to avoid serialization and stale data issues, closes #356
2010-07-12 07:48:19 +02:00
José Valim
ebe3e791d6
Email should be case insensitive, closes #372
2010-07-12 07:29:45 +02:00
José Valim
2602ef41cf
Do not add unlock routes unless unlock strategy is email or both, closes #373
2010-07-12 07:24:21 +02:00
José Valim
a87bc4a861
Also pass stretches to salt generation.
2010-07-12 06:59:49 +02:00
José Valim
eca511a8f2
Use confirmed_at as flag.
2010-07-08 08:21:14 +02:00
James Pellow
9f29ca480b
Add http_authenticatable_on_xhr option
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-07 21:26:29 +02:00
José Valim
bd0e2a3180
devise_for now accepts a block. All routes inside the block uses the scope defined by devise_for.
...
You are now allowed to do:
devise_for :users do
# Non conventional sign_in route
get "/sign_in" => "devise/sessions#new"
end
And it should work as expected.
2010-07-07 10:51:14 +02:00
José Valim
e2a4ebce4a
Consider script name in PathChecker.
2010-07-06 16:01:22 +02:00
José Valim
ae6322efb5
No longer retrieve the user from paths, but use the env hash. This change deprecates use_default_scope.
...
If you have non conventional routes and want to specify the scope for a controller, you can do that at the router level:
as :user do
get "/sign_in", :to => "devise/session#new"
end
This is saying: when accessing "/sign_in", devise should use the user scope. Meaning that users signed through that form will be signed to the user scope.
2010-07-06 01:33:32 +02:00
José Valim
96a9c88420
Improve docs on finders after taking a look at the wiki.
2010-07-05 19:11:37 +02:00
José Valim
dd612753f9
Extract redirect_url from failure app to its own method.
2010-07-05 15:22:44 +02:00
José Valim
f54013a181
Do not hardcode to devise/mailer in order to allow inheritance to work.
2010-07-05 10:05:08 +02:00
José Valim
1cf77028c1
Bump version to 1.1.0 but do not release yet. We are only using this as flag for those using Devise as git with bundler due to the latest changes.
2010-07-04 17:34:33 +02:00
José Valim
7774accb6c
Remove data_mapper support.
...
Devise 1.1.0 will be released soon. This new version will support activerecord and mongoid as default ORMs. From now on, Devise will prefer ORM extensions as gems since this is the best way to handle dependencies.
For example, to allow Devise to work with Datamapper, it requires at least activemodel, dm-rails and dm-timestamps. If the ORM support comes from Devise gem, we cannot add dm-rails and dm-timestamps as dependencies, relying on the developer and documentation to find these out and install them.
Other ORMs may still be added to Devise, as long as they are supported by the community, extend Devise test suite to have all tests passing and they necessarily use ActiveModel::Validations.
2010-07-04 17:22:57 +02:00
José Valim
6c49b428b3
Add flexibility to devise generators by using ORM hooks.
2010-07-04 17:15:24 +02:00
José Valim
7113dfe93a
Ensure to convert template engine to string to properly match haml, closes #359
2010-07-04 13:13:00 +02:00
José Valim
4083d679d4
Add documentation to the new :module method.
2010-07-04 13:11:04 +02:00
José Valim
7a1adbb61e
Improve integration of devise with new router scope.
2010-07-04 11:53:12 +02:00
José Valim
18cccae82f
Update bundler, Rails and improve tests for previous commit.
2010-07-02 08:12:00 +02:00
klacointe
e9fbb3d7ef
fix AbstractController::ActionNotFound when use
...
route with specific format (ie xml, json...)
2010-07-02 13:25:33 +08:00
José Valim
04c25539c2
Add remember_me to attr_accessible on generation.
2010-07-01 12:38:48 -07:00
José Valim
421256d294
Devise should respect script_name and path_info contracts. This closes #331 , a long standing bug with Passenger.
2010-07-01 13:50:05 +02:00
José Valim
8e3ef2a620
Add entry to CHANGELOG.
2010-06-30 12:49:41 +02:00
Trevor Turk
8824b767f3
remember_across_browsers option for rememberable module
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 12:42:42 +02:00
José Valim
2103a673f0
Allow devise_for to be scoped with the scope method. This commit requires latest commits in Rails master.
2010-06-30 12:41:44 +02:00
José Valim
4b272767d6
Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts, closes #341 .
2010-06-29 11:52:10 +02:00
Maxim Filatov
4db3ac820b
sign_out_all_scopes is false by default
2010-06-25 02:29:52 +08:00
Maxim Filatov
503d27f2e1
Renew devise:install due to sign_out_everybody => sign_out_all_scopes
2010-06-25 02:29:50 +08:00
Denis Lifanov
2475faf9c7
warden.logout(*scopes) instead of warden.logout(*Devise.mappings.keys)
2010-06-25 02:29:49 +08:00
Denis Lifanov
819db39263
simplification (sign_out_everybody => sign_out_all_scopes)
2010-06-25 02:29:48 +08:00
Maxim Filatov
f864259f1e
Added config.sign_out_scoped to devise:install
2010-06-25 02:29:47 +08:00
Maxim Filatov
12ae21117c
Missed rdoc
2010-06-25 02:29:46 +08:00
Denis Lifanov
1a224c7486
move sign_out_scoped logic to the Devise::SessionsController#destroy
2010-06-25 02:29:45 +08:00
Denis Lifanov
f10b747f7f
Devise.sign_out_scoped option added
2010-06-25 02:29:43 +08:00
Denis Lifanov
8370006591
we should not fetch Devise.mappings.keys twice in #sign_out_everybody
2010-06-25 02:29:42 +08:00
Denis Lifanov
1924a915a8
sign_out_everybody helper (as a convenient proxy to warden)
2010-06-25 02:29:41 +08:00