Lucas Mazza
6e95b66b54
Release v3.3.0
2014-08-13 13:41:14 -03:00
Lucas Mazza
c37552f552
Update CHANGELOG
2014-08-11 17:36:57 -03:00
Lucas Mazza
5d43d5f3bc
✂️
2014-08-11 17:35:28 -03:00
Lucas Mazza
6207e03070
Merge pull request #3135 from alexsoble/master
...
UX feature: heads-up for new users about minimum password length
2014-08-11 17:34:41 -03:00
alexsoble
c3fa8fabcf
Restore password length message in case of error
2014-08-10 12:17:54 -04:00
alexsoble
fe015f5a54
Revert "Update routes to match 'sign up'/'log in', incorporate feedback from @carlosantoniodasilva"
...
This reverts commit de2a24b3d3 .
2014-08-10 12:13:35 -04:00
alexsoble
de2a24b3d3
Update routes to match 'sign up'/'log in', incorporate feedback from @carlosantoniodasilva
2014-08-07 11:33:03 -04:00
alexsoble
67d8dd1e94
Replace 'Sign in' with 'Log in' in views, update tests
2014-08-06 13:32:02 -04:00
Lucas Mazza
42c3523632
Update Rails git dependencies
2014-08-06 13:40:26 -03:00
Lucas Mazza
6f75fc7a14
Do not mutate the receiving arguments
2014-08-06 13:28:17 -03:00
Lucas Mazza
876644168b
remove intermediate Array manipulation
2014-08-06 13:24:29 -03:00
Lucas Mazza
880146668b
Update devise_group documentation
2014-08-06 13:24:10 -03:00
Lucas Mazza
086b77ae6d
Update CHANGELOG
2014-08-06 13:23:52 -03:00
alexsoble
039b75ba83
Incorporated edits from @lucasmazza, wrote integration tests for password reminder feature
2014-08-06 11:04:46 -04:00
Lucas Mazza
eb9db7ba3a
Coerce time objects serialized as Strings before doing the timeoutable comparisons.
...
The comparison only fails on Ruby 1.9.3, when we need to parse it properly back
to a Time instance.
Related to #2930 .
2014-08-05 14:58:27 -03:00
alexsoble
e65c26e1e7
Only display password length warning if validatable module is included
2014-08-05 10:22:47 -04:00
alexsoble
c38accd648
Tell new signups about minimum password length in registrations/new.html.erb
2014-08-04 15:53:40 -04:00
Lucas Mazza
447b7030f8
Work around I18n recent failures.
2014-07-29 18:27:34 -03:00
Lucas Mazza
3cd6e650ef
'eval_block' shouldn't be used since it is a private API.
...
This method was made private on Rails master @ d2d3376903
2014-07-29 18:22:42 -03:00
Lucas Mazza
8a4fd04436
Update dependencies
2014-07-29 15:58:15 -03:00
José Valim
66db52ce31
Merge pull request #3113 from jherdman/patch-1
...
Silence Warning Regarding Use of Splat
2014-07-11 21:09:36 +02:00
James Herdman
b64f165154
Silence Warning Regarding Use of Splat
...
I was seeing the following in my console:
```
/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/devise-3.2.4/app/controllers/devise_controller.rb:9: warning: `*' interpreted as argument prefix
/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/devise-3.2.4/app/controllers/devise_controller.rb:10: warning: `*' interpreted as argument prefix
```
This change silences this warning.
2014-07-11 15:06:56 -04:00
Carlos Antonio da Silva
1d803dd23b
Get rid of extra module for group helpers
...
Just use the existing ClassMethods module which is properly extended
with AS::Concern.
2014-07-10 17:01:26 -03:00
Carlos Antonio da Silva
f1d57d7791
Use a different mapping name for testing the omniauth callback failure
...
This leaks into Devise mappings overriding the existing :admin one, so
depending on the test seed it fails like this:
$ TESTOPTS="--seed=9972" rake
==> Devise.orm = :active_record
Run options: --seed=9972
...
1) Failure:
MappingTest#test_allows_path_to_be_given [./test/mapping_test.rb:31]:
Expected: "admin_area"
Actual: "admin"
Using a different name should avoid any test randomization issues.
2014-07-10 08:58:21 -03:00
Carlos Antonio da Silva
da01235a20
Fix test that checks for proper configuration of omniauth callback
...
Previously the test was raising an ArgumentError by mistake:
ArgumentError: wrong number of arguments (0 for 1)
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:328:in `eval_block'`
The #eval_block method expects a proc/lambda argument that can be
instance_exec'ed, not a real block. In the Rails implementation the block
is passed to #draw, which calls #eval_block internally passing the block
along, but as a Proc argument and not as a block.
Also the error we were raising from #devise_for was a RuntimeError,
changed to the expected ArgumentError. Adding an assertion on top of the
expected message should ensure we won't have this issue again.
This was introduced in 29da146c07 , related
to #2802 .
2014-07-10 08:53:18 -03:00
Carlos Antonio da Silva
57d7a75b65
Use Devise's swap mechanism in failure app test
...
Also refactor tests to remove the custom failure app class only used
once in favor of an inline class for the specific test, makes it easier
to follow what's going on.
2014-07-10 08:53:18 -03:00
Carlos Antonio da Silva
2e8aecdac2
Create an anonymous class to test the failure app
...
No need to have a named class inside the test.
2014-07-10 08:13:06 -03:00
Vasiliy Ermolovich
9938a5e933
add documentation about skip: :all option to devise_for method
2014-07-06 16:35:51 +03:00
Lucas Mazza
9a5783ade3
Update Rails dependency across all lockfiles
2014-07-03 11:50:46 -03:00
Lucas Mazza
50679e1d93
Update Rails version across all the Gemfiles
2014-06-26 20:17:16 -03:00
Lucas Mazza
b6af1675d5
Merge pull request #3082 from greysteil/update-travis
...
Update Travis config to test on ruby 2.1.2 instead of 2.1.1
2014-06-24 10:23:48 -03:00
Lucas Mazza
520dfe2eb4
Update the overall dependencies and test with mongoid 4.0.0 for now on.
2014-06-24 10:22:26 -03:00
Lucas Mazza
8df6980c9e
Update _prefixes override to work with Rails 4.2
2014-06-24 10:06:45 -03:00
José Valim
6f7cd1332b
Merge pull request #3083 from jjb/patch-1
...
changelog detail for expire_all_remember_me_on_sign_out
2014-06-21 10:21:38 +02:00
John Bachir
8c7f6bd2aa
changelog detail for expire_all_remember_me_on_sign_out
...
explain that it's the configurability and not the functionality which is new
2014-06-20 18:01:35 -04:00
Grey Baker
89629e68c9
Update Travis config to test on ruby 2.1.2 instead of 2.1.1
2014-06-20 14:31:15 +01:00
José Valim
f0738098f0
Merge pull request #3079 from Yenwod/add-setup-detail
...
Add migration setup detail to README
2014-06-19 21:21:17 +02:00
Chris Downey
9abee354f7
Add migration setup detail to README
2014-06-19 15:03:19 -04:00
José Valim
382492ce40
Merge pull request #3077 from ShepBook/minor-readme-grammar
...
Make minor changes to readme grammar.
2014-06-19 10:49:31 +02:00
Jared Koumentis
d0cb629f81
Make minor changes to readme grammar.
2014-06-19 00:31:37 -04:00
Rafael Mendonça França
a11f54151b
Merge pull request #3074 from adamniedzielski/remove-cancan-from-readme
...
Outdated reference to CanCan in README
2014-06-18 11:11:10 -03:00
Adam Niedzielski
a0b97f5b5d
Update README.md
...
Remove reference to CanCan - it is no longer maintained
2014-06-18 16:03:39 +02:00
José Valim
83c01142a7
Merge pull request #3072 from roryokane/patch-1
...
Fix grammar and capitalization errors in README
2014-06-16 20:55:49 +02:00
Rory O’Kane
47ba796c26
Fix grammar and capitalization errors in README
2014-06-16 13:43:55 -04:00
José Valim
eeb6060d9d
Merge pull request #3054 from cheerfulstoic/devise-neo4j
...
Changes to support devise-neo4j
2014-06-06 21:08:28 +02:00
José Valim
301539378e
Merge pull request #3060 from thomasdarde/patch-1
...
Update README.md
2014-06-06 21:00:22 +02:00
Thomas Darde
cb48c9c408
Update README.md
...
Add more description on the way I18n.locale has to be set in case of multi-locale app.
2014-06-06 18:39:06 +02:00
Brian Underwood
74f4442319
User Model.to_adapter directly as suggested by @josevalim
2014-06-06 08:35:42 -07:00
José Valim
2bde395840
Update activatable.rb
2014-06-06 13:03:53 +02:00
José Valim
8b3b3d7955
Merge pull request #3042 from dropletzz/group_helpers
...
Helper methods for groups of mappings
2014-06-06 12:58:44 +02:00
Brian Underwood
2174e4675e
Use User and Admin orm_adapter adapter in tests to support other ORMs (neo4j, in this case)
2014-06-04 21:59:30 -07:00
Lucas Mazza
40068c4cba
Merge pull request #3048 from shanab/master
...
Update README.md
2014-05-29 10:13:10 -03:00
Ahmed Mostafa
37e05380d1
Update README.md
...
Fixed incorrect method definition.
2014-05-29 16:08:29 +03:00
Brian Underwood
65d7d1ba55
Change test to use acts_like? so that we can have DateTime fields
2014-05-28 22:17:07 -07:00
Giovanni Caniato
dfcb342a8f
group methods defined in the current scope
2014-05-28 19:30:03 +02:00
Lucas Mazza
88efa6545f
Swap the failure app during the test case properly.
2014-05-28 12:07:25 -03:00
Giovanni Caniato
cb1d6c4684
moved helpers definition from routes to controllers
2014-05-27 11:58:55 +02:00
Giovanni Caniato
8df6a2f38b
added groups with their helper methods
2014-05-26 16:45:18 +02:00
José Valim
395b5c4237
Merge pull request #3011 from dwhenry/make-devise-more-engine-friendly
...
Make devise more engine friendly
2014-05-24 20:20:03 +09:00
Lucas Mazza
08d8591dfd
Merge pull request #3038 from kushkella/non-bang-method-trackable
...
added non-bang version of update_tracked_fields
2014-05-24 00:58:06 -03:00
Lucas Mazza
09db3c65ec
Merge pull request #3041 from brentkearney/master
...
Getting Started instructions: clarification on dynamic method names
2014-05-24 00:40:01 -03:00
Brent Kearney
82b60fce15
Changed MODEL to model, as per request.
2014-05-23 15:15:41 -06:00
Brent Kearney
0e14ac3aa7
Updated Getting Started instructions to help avoid confusion around alternate devise MODEL names
2014-05-23 12:26:19 -06:00
Kush Kella
dd56dc7da6
added test for update_tracked_fields method
2014-05-22 11:11:13 -07:00
José Valim
9818038a72
Merge pull request #3029 from randoum/master
...
lock_access! better failure message
2014-05-22 10:20:41 +02:00
José Valim
6a783c9ec7
Merge pull request #3023 from jphenow/omniauth-cant-cleanup-csrf
...
Omniauth can't cleanup CSRF
2014-05-22 10:17:48 +02:00
Kush Kella
451be888cb
added non-bang version of update_tracked_fields
2014-05-21 16:18:35 -07:00
Jimmy Chen
72f5eae391
Document that we can configure Devise test helpers in spec_helper.rb
...
Closes #3006 [ci skip]
2014-05-21 20:07:07 -03:00
randoum
4ee2402cd7
lock_access! better failure message
2014-05-16 06:02:11 +08:00
randoum
d8ee3e49cb
lock_access! better failure message
2014-05-16 05:57:18 +08:00
David Henry
6a628724ea
Ensure I don't leave public methods around that break the test suit..
2014-05-15 19:42:08 +01:00
David Henry
c5c360cdd9
Add classes for mongoid based tests
2014-05-15 18:59:51 +01:00
Jon Phenow
d47c370916
* Allows CSRF cleanup to be turned off for certain strategy types
...
* Defaults Authenticatable CSRF cleanup
2014-05-15 09:16:31 -05:00
Lucas Mazza
2f6edfd0c5
Update dependencies.
2014-05-14 23:41:29 -03:00
Lucas Mazza
fa36464268
Silence the OmniAuth logger during tests.
2014-05-14 23:25:29 -03:00
Lauro Caetano
b51c3c1911
Merge pull request #3024 from diegosouzapb/master
...
Update README.md
2014-05-11 01:30:19 -03:00
Diego Souza Rodrigues
d1a9f220a1
Update README.md
...
The old Michael Hartl's online book link was broken. I guess this link is its substitute.
2014-05-11 01:11:48 -03:00
David Henry
426560a4db
Attempt without adding engine to application
2014-05-08 00:46:19 +01:00
Carlos Antonio da Silva
6129215afe
Simplify test that verifies multiple warden blocks
2014-05-07 18:53:09 -03:00
Carlos Antonio da Silva
916e1d8da9
No need for instance vars on these tests
2014-05-07 18:50:50 -03:00
Carlos Antonio da Silva
1e8a387f34
Merge pull request #3020 from adrpac/master
...
Fix Rails 4 detection
2014-05-07 17:22:33 -03:00
Adrian Pacała
a2376d6ca1
Fix Rails 4 detection
2014-05-07 22:17:40 +02:00
José Valim
f611b63069
Merge pull request #3017 from adrpac/master
...
Use inet column type when generating migrations under PostgreSQL
2014-05-07 10:08:39 +02:00
Adrian Pacała
fa1a864731
Generate inet columns for Rails 4 only
2014-05-07 09:18:10 +02:00
Adrian Pacała
53504f7e28
Generate inet columns for postgresql
2014-05-07 08:50:21 +02:00
David Henry
c7099ac5b0
Merge branch 'master' of github.com:plataformatec/devise into make-devise-more-engine-friendly
...
Conflicts:
.travis.yml
Gemfile.lock
2014-05-07 00:22:16 +01:00
David Henry
bec913fc07
Clean up the code.
2014-05-06 23:31:59 +01:00
David Henry
b5da4e82d0
Add full tests around confirmation when using devise_for with router_name
2014-05-06 23:07:24 +01:00
David Henry
ceafc710ef
Start adding tests to the engine routing tests.
2014-05-06 00:56:58 +01:00
David Henry
2d3ca4dc31
get everything working with the engine included and devise routes declared within it.
2014-05-05 23:50:26 +01:00
David Henry
18da4b1eff
Stash as test have broken
2014-05-05 23:23:55 +01:00
David Henry
1e8e8516f0
Simplify access to router_name using the existing scope lookup.
2014-05-05 23:19:03 +01:00
Lucas Mazza
a51036196a
Merge pull request #3013 from aditya-kapoor/split-send_reset_password_instructions
...
Split send_reset_password_instructions for better hooking
2014-05-05 17:45:09 -03:00
aditya-kapoor
2fc25a8c68
rename method + remove extra db call
2014-05-06 01:23:55 +05:30
aditya-kapoor
c8fcbde2af
split send_reset_password_instructions into two parts for better hooking
2014-05-05 13:41:08 +05:30
Lucas Mazza
a3fc587c24
Update Travis config to test on ruby 2.1.1 instead of 2.1.0
2014-05-04 22:45:07 -03:00
Lucas Mazza
3014bcbc45
Update Rails HEAD Gemfile dependencies.
2014-05-04 21:36:38 -03:00
Lucas Mazza
4110ab3228
Update 4-0-stable Gemfile dependencies.
2014-05-04 21:30:06 -03:00
Lucas Mazza
303145c8b7
Update 3-2-stable Gemfile dependencies.
2014-05-04 21:28:01 -03:00
Lucas Mazza
7bab20e55e
Update main Gemfile dependencies.
2014-05-04 21:21:45 -03:00
David Henry
33873426ad
Use 2.1 instead of 2.1.0
...
travis-ci/travis-ci#2220
2014-05-04 22:59:29 +01:00
David Henry
3e8fce5081
Make sure I include the new class into the gem
2014-05-04 12:53:25 +01:00
David Henry
d875c01bc2
Extract routing context to its own file.
2014-05-03 23:22:00 +01:00
David Henry
feff27aaee
Add description around the new method.
2014-05-03 22:47:27 +01:00
David Henry
1dd84a8244
Don't couple the routing object to the whole system.. pass around the RoutingDetails object instead.
...
NOTE: RoutingDetails is supposed to be a simple data transfer object.
2014-05-03 22:46:04 +01:00
David Henry
2dee54bc86
make the find_mapping! method return a mapping object
2014-05-03 22:41:32 +01:00
David Henry
23761aded2
Add find_mapping! method to return the router_name instead of overloading find_scope!
2014-05-03 22:37:21 +01:00
David Henry
e085526b6e
Get the logic in the right order and fix variable naming (and run the tests)
2014-05-02 00:22:20 +01:00
David Henry
38b347ac00
Fix bug in the tests
2014-05-02 00:17:17 +01:00
David Henry
9e8371c293
Make after_sign_out_path_for and after_inactive_sign_up_path_for aware of router name if declared in devise_for declaration.
2014-05-01 23:49:46 +01:00
David Henry
da49ed23f9
Start adding code to allow devise_for to specify the engine context (router_name) to be used.
2014-05-01 23:39:05 +01:00
José Valim
873e57e97d
Merge pull request #3008 from weih/update-legacy-comment
...
Update legacy comment [ci skip]
2014-05-01 14:19:08 +02:00
Hao Wei
11c8875479
Update legacy comment
2014-05-01 19:49:37 +08:00
Lucas Mazza
1ad09f9cfc
Improve CHANGELOG and move assignment to outside the if statement.
2014-04-28 11:28:48 -03:00
Lucas Mazza
13a8ad81ee
Merge pull request #2997 from parallel588/master
...
fixed store location with bad URL
2014-04-28 11:26:56 -03:00
Lucas Mazza
b4c06d1ded
Merge pull request #3004 from kento1218/topic/confirmation-success-redirect
...
Fix Devise::ConfirmationsController#after_confirmation_path_for
2014-04-28 10:56:31 -03:00
kento1218
d63b6b7b9d
Fix Devise::ConfirmationsController#after_confirmation_path_for
...
after_confirmation_path_for checks whether the user already signed in
by calling signed_in? after confirmation succeeded.
Since it was called without scope specification, the user treated as
signed in inappropriately when the user signed in as another resource
(such as 'admin').
2014-04-28 20:44:00 +09:00
Lauro Caetano
1fbc165b98
Merge pull request #3001 from daniely/patch-1
...
Update README.md
2014-04-27 01:17:55 -03:00
daniely
9cafe0dff6
Update README.md
...
Correct grammar from "on progress" to "in progress"
2014-04-27 10:25:16 +08:00
Maxim Pechnikov
a841e6c4f0
fixed storing location with bad URL
2014-04-25 19:14:32 +04:00
José Valim
24327c7310
Merge pull request #2990 from westonplatter/master
...
remove new line to keep convention with other methods
2014-04-20 22:55:48 +02:00
Weston Platter
0b096c961a
remove new line to keep convention with other methods
2014-04-20 13:57:31 -06:00
José Valim
0a27a0da3b
Merge pull request #2985 from crismali/present-over-not-blank
...
Switched all instances of 'not blank?' to 'present?'
2014-04-18 08:41:02 +02:00
Michael Crismali
f37b10ef87
Switched all instances of 'not blank?' to 'present?'
2014-04-17 20:34:28 -05:00
Rafael Mendonça França
081ea9e0ba
Add CHANGELOG entry for #2978 [ci skip]
2014-04-15 18:47:16 -03:00
Rafael Mendonça França
f60892be23
Merge pull request #2978 from rossta/support_for_multiple_warden_config_blocks
...
Support multiple warden configuration blocks
2014-04-15 18:46:28 -03:00
Ross Kaffenberger
5f32cd25fd
support multiple warden configuration blocks
...
Changes the behavior of `Devise.warden` such that calling it multiple
times with different blocks will result in a call to each block on
`Devise.configure_warden!` rather than "last block wins". This is
especially used for plugins that wish to extend warden functionality
without clobbering base app configuration or vice versa.
2014-04-15 17:20:21 -04:00
Lucas Mazza
38e868dc79
Update Travis encrypted keys
2014-04-09 19:24:25 -03:00
Lucas Mazza
67613117aa
Merge pull request #2955 from lucasmazza/lm-cached-bundle
...
Cache bundle results on Travis to S3
2014-04-09 19:21:29 -03:00
José Valim
61c497d173
Merge pull request #2968 from plataformatec/sign_out_not_logged_in_user
...
Check if there is a logged user before logout.
2014-04-09 18:17:06 +02:00
Lauro Caetano
571dead19b
Check if there is a signed in user before sign out.
...
Only execute the `SessionsController#destroy` if there is a signed in
user, otherwise it will raise
`ActionController::InvalidAuthenticityToken`.
Fixes #2934 .
2014-04-09 10:25:44 -03:00
Lucas Mazza
b0b18fb805
Merge pull request #2965 from sadjow/use-port-option-on-default-url-options
...
Use port option in default url options for ActionMailer
2014-04-04 21:14:04 -03:00
Lucas Mazza
5c57d88505
Cache bundle results on Travis to S3
2014-04-04 20:22:39 -03:00
Sadjow Leão
a2bd5631da
Use port option in default url options for ActionMailer
2014-04-04 19:01:12 -03:00
José Valim
6466d5c517
Merge pull request #2964 from plataformatec/invalidate_all_sessions_on_logout
...
Add configuration to invalidate all the remember me tokens when the user signs out.
2014-04-04 21:28:22 +02:00
Lauro Caetano
f7fdde1ab0
Add the invalidate_all_sessions_on_logout configuration to invalidate
...
all the remember me tokens when the user signs out.
2014-04-04 16:17:26 -03:00
José Valim
947169e4f5
Merge pull request #2960 from kgiszczak/redirect-url-tweaks
...
Use full urls instead of just paths when redirecting in failure app.
2014-04-04 17:41:41 +02:00
Kamil Giszczak
9cada8d2d4
Use scope instead of constraints to define routes.
...
It works the same with rails 3 and rails 4.
2014-04-04 16:07:37 +02:00
José Valim
314f731a66
Update CHANGELOG
2014-04-04 09:50:13 +02:00
José Valim
b786c384d5
Remove need for raw session inspect
2014-04-03 21:00:12 +02:00
Lucas Mazza
6027787930
Merge pull request #2954 from plataformatec/lm-last-request-at-json-serialization
...
Serialize the `last_request_at` entry as an Integer
2014-04-02 22:58:14 -03:00
Kamil Giszczak
a38f2f96b5
Use _url routes instead of _path
2014-04-02 15:42:41 +02:00
José Valim
d019e1ed1a
Merge pull request #2958 from karlentwistle/master
...
Find a resource based off its encrypted reset_password_token
2014-03-31 19:16:20 +02:00
Karl Entwistle
58b311a93f
Use the ORM Adapter API
2014-03-31 15:24:55 +01:00
Karl Entwistle
de57ef83fb
Find a resource based off its encrypted reset_password_token
2014-03-31 14:58:52 +01:00
Lucas Mazza
145ce9e1de
Merge pull request #2956 from Yasserius/patch-1
...
before_filter turned into before_action
2014-03-29 16:01:54 -03:00
Yasserius
7adf95b945
before_filter turned into before_action
2014-03-30 00:52:00 +06:00
Lucas Mazza
71d8dd37bb
Update mongoid dependency.
2014-03-28 23:11:53 -03:00
Lucas Mazza
da0c27393f
Serialize the last_request_at entry as an Integer
...
Pushing the `Time` object inside the session has inconsistencies
across different serializers and we should use a more primitive type
so we don't need any specific parsing logic for the JSON serializer.
2014-03-28 22:51:56 -03:00
Lucas Mazza
f19e82021f
Add some spaces around the curly brackets.
2014-03-28 20:53:50 -03:00
Lucas Mazza
3d0559bc4d
Merge pull request #2953 from jbnunn/README_ConfiguredParams
...
Fixed documentation for configured_permitted_parameters
2014-03-28 20:51:36 -03:00
J. Nunn
739c187e81
Fixed documentation for configured_permitted_parameters
2014-03-28 17:21:50 -05:00
Vasiliy Ermolovich
937ed6291c
Merge pull request #2946 from naveda89/patch-1
...
Fixed path syntax error on README.md
2014-03-25 16:46:06 +02:00
Alvaro Naveda
aa456c9d07
Fixed path syntax error on README.md
...
Minor fix on the configuring controllers section.
2014-03-25 15:43:46 +01:00
José Valim
5b49bd3450
Improve docs for update_with_password
...
Closes #2942
2014-03-24 21:49:48 +01:00
José Valim
da34c54093
Merge pull request #2937 from dpehrson/registrations-controller-failure-yield
...
Ensure registration controller block yields happen on failure in addition to success
2014-03-24 18:58:29 +09:00
Daniel Pehrson
90e55409e1
Upgrade stray legacy hash syntax to 1.9 syntax.
2014-03-21 15:24:25 -04:00
Daniel Pehrson
ce3ead6b5f
Ensure registration controller block yields happen on failure in addition to success and closes #2936 .
...
Now with 100% more unit tests.
2014-03-21 10:29:14 -04:00
Lucas Mazza
d439bc409c
Fix typo on CHANGELOG
2014-03-17 12:11:01 -03:00
Lucas Mazza
8d7a72326a
Add a note about #2906 to the CHANGELOG.
2014-03-17 12:10:44 -03:00
Lucas Mazza
59cd0cc240
Merge pull request #2906 from p-originate/master
...
Grammar/content fixes for email confirmation language
2014-03-17 12:08:07 -03:00
Lucas Mazza
1eab594895
SessionsController#destroy no longer yields the resource object.
...
If you need access to the current resource when overring the action
use the scope helper (like `current_user`) before calling `super`.
Closes #2926 .
2014-03-17 11:52:20 -03:00
Lucas Mazza
755219ccfc
Release v3.2.4
2014-03-17 11:16:38 -03:00
Lucas Mazza
9044631f4c
Merge pull request #2933 from weimeng/update-changel
...
Update CHANGELOG.md with missing 2.1.x minor versions
2014-03-17 10:59:33 -03:00
Wei-Meng Lee
a05d001c41
Update CHANGELOG.md with missing 2.1.x minor versions
...
Changelog for missing entries taken from https://github.com/plataformatec/devise/blob/v2.1.4/CHANGELOG.rdoc
2014-03-17 15:18:44 +08:00
Lucas Mazza
a8e1d42097
Bump mocha.
2014-03-12 14:40:11 -03:00
Lucas Mazza
0df786c849
Add README docs and a CHANGELOG entry for #2916
2014-03-09 20:54:41 -03:00
Lucas Mazza
ccfe389be1
Merge pull request #2916 from kayline/master
...
Add ability to generate only specified view directories
2014-03-09 20:49:27 -03:00
Molly Trombley-McCann and Shatarupa Nandi
a79e0f6bca
Rename variable to views, change flag to -v
2014-03-06 13:41:11 -08:00
Molly Trombley-McCann
3640abc933
add description to view generator flag
2014-03-04 15:08:46 -08:00
Molly Trombley-McCann
09ebe833b3
Add a flag to views generator allowing user to specify which view directories to generate
2014-03-04 15:05:16 -08:00
Molly Trombley-McCann
4a0bc7692a
Add a flag to views generator allowing user to specify which view directories to generate
2014-03-04 14:47:19 -08:00
Greg Cobb and Molly Trombley-McCann
0d06ed6c79
WIP
2014-03-03 09:30:00 -08:00
Oleg Pudeyev
47845e44a2
Chase language changes in tests
2014-03-03 10:15:33 -05:00
José Valim
71eb6176c3
Merge pull request #2913 from petervandenabeele/master
...
Note that the cost of bcrypt grows dramatically with number of stretches
2014-03-02 20:30:08 +01:00
Peter Vandenabeele
7e6dd5022b
Clarify that this stretch behavior is for bcrypt
...
* other encryptors show a different behavior regarding the
number of stretches
2014-03-02 20:23:57 +01:00
Peter Vandenabeele
286eefa9b4
Note that the cost of bcrypt grows dramatically with number of stretches
...
* this will avoid people (like me) loosing an hour trying to understand
why doing it "a little bit safer" with 20 stretches suddenly takes
60 seconds to do sign_up or sign_in. An example of such discussion is:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/399627
2014-03-02 18:57:32 +01:00
José Valim
5e00be4af8
Merge pull request #2912 from petervandenabeele/master
...
Fix typo in initializer template comment
2014-03-02 16:17:14 +01:00
Peter Vandenabeele
a89af190e2
Fix typo in initializer template comment
2014-03-02 15:22:59 +01:00
Oleg Pudeyev
dbddce6acd
Missed some "instructions about" -> for
2014-02-28 15:12:07 -05:00
Oleg Pudeyev
1a87fd6477
All other text does not use camel case
2014-02-28 02:04:35 -05:00
Oleg Pudeyev
00af1481f8
Grammar/content fixes for email confirmation language
...
- account -> email address
- was -> has been
2014-02-28 02:04:23 -05:00
Lucas Mazza
aea82d0b03
Update remaning 1.8 hash syntax.
2014-02-25 14:25:55 -03:00
José Valim
3d9dea39b2
Merge pull request #2899 from justanshulsharma/master
...
Updated ruby 1.9 hash syntax
2014-02-25 18:03:16 +01:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
José Valim
a5ad61c167
Merge pull request #2884 from dlackty/fix-secret-token-not-found
...
Set default secret_key before eager load
2014-02-25 17:36:19 +01:00
Richard Lee
146a2e500e
Set default secret_key before eager load
2014-02-25 17:56:34 +08:00
Lauro Caetano
4995d3c221
Merge pull request #2880 from dwbutler/issue_2875
...
Fix for #2875
2014-02-22 20:53:28 -03:00
David Butler
1987ffc171
Fix for #2875
2014-02-22 12:22:05 -08:00
José Valim
16b29baa5b
Merge pull request #2876 from rbsec/master
...
Disable autocompletion on all password inputs
2014-02-22 09:16:25 +01:00
José Valim
49403267cf
Merge pull request #2854 from aceofspades/omniauth_devise_route_context
...
Use _devise_route_context in omniauth url_helpers
2014-02-22 09:09:55 +01:00
Lucas Mazza
4d7473634e
bcrypt-ruby is now bcrypt.
2014-02-21 18:33:59 -03:00
rbsec
13b50d63ca
Set autocomplete=off on all password inputs
2014-02-21 10:37:17 +00:00
Lucas Mazza
b8f1d0d0c6
Release v3.2.3
2014-02-20 15:30:48 -03:00
José Valim
60b6a80764
Merge pull request #2868 from rmm5t/patch-1
...
Update password_length docs in config template
2014-02-16 14:45:05 +01:00
Ryan McGeary
5f9838950a
Remove password_length default docs in config template
...
The default specified in the docs does not match up with the default
specified in the config.
See
cc8636cfed/lib/devise.rb (L127)
Changing the docs to read 6..128 with the config setting to 8..128 is
feared to cause confusion, so removing the default clause instead.
2014-02-16 08:19:47 -05:00
José Valim
0ece5d5190
Merge pull request #2869 from leriksen/master
...
Additional documentation on permitted scalars and nested parameter configuration
2014-02-16 10:04:26 +01:00
leriksen
058eac640f
Additional documentation on simple scalars and nested types
2014-02-16 12:06:55 +11:00
José Valim
cc8636cfed
Merge pull request #2866 from guilhermesimoes/readme-update
...
Readme update
2014-02-15 00:09:44 +01:00
Guilherme Simoes
e18b822567
Update README.md
...
The updates are:
* Indicate that it is possible to pass a block to `super` to add custom
behaviour to some Devise controller actions without completely
overriding them.
* Move mailer configuration out of the section "Controller filters and
helpers".
* Consistently use Ruby 1.9's hash syntax, highlight code and capitalize
"Devise".
* Wording improvements
2014-02-14 22:54:30 +00:00
Lucas Mazza
93bdee2640
Merge branch 'lm-migration-extension'
2014-02-11 11:00:16 -02:00
Lucas Mazza
e57b672e90
Ensure that migrations are created with the .rb extension.
...
Since rails/rails#13612 the generator won't always add the `.rb`
extension when creating migrations with the `migration_template`
method.
2014-02-11 10:19:05 -02:00
Lucas Mazza
e9351b7c15
Merge pull request #2857 from albertodotcom/patch-2
...
Update README.md
2014-02-10 23:57:45 -02:00
Alberto Forni
7c3e08d92d
Update README.md
...
Substitute ; with .
2014-02-11 10:47:51 +11:00
Doug Puchalski
46c01d642b
Use _devise_route_context in omniauth url_helpers
2014-02-02 16:45:26 -08:00
Rafael Mendonça França
2aedb1bf79
Merge pull request #2843 from willnet/patch-1
...
Fix homepage's schema
2014-01-25 21:37:43 -08:00
Shinichi Maeshima
9d87aa55bd
Fix homepage's schema
2014-01-26 14:31:26 +09:00
José Valim
791657f3ef
Merge pull request #2842 from slant/patch-1
...
Correct misspelling
2014-01-22 23:48:12 -08:00
Ryan L. Cross
8981c3ef9b
Correct misspelling
2014-01-23 00:44:32 -07:00
José Valim
7a9ae13baa
Merge pull request #2835 from plataformatec/secrets
...
Add support for Rails 4.1 secrets.
2014-01-22 05:33:11 -08:00
Lucas Mazza
eba91e6580
Read the secret_key value from Rails secret_key_base.
...
It is possible to override this by setting the `secret_key` manually
on the `devise.rb` initializer on your application.
2014-01-22 11:13:25 -02:00
José Valim
d5e0171cb4
Merge pull request #2832 from jwworth/master
...
Fix typos
2014-01-09 08:03:25 -08:00
Jake Worth
61e87be580
Fix typos
2014-01-09 10:00:27 -06:00
José Valim
e16278966f
Merge pull request #2826 from tobinibot/fix-maximum-attempts
...
Fix off-by-one error in Lockable module
2014-01-06 23:43:55 -08:00
Tobin Juday
2ba8275dcc
Fix off-by-one error in Lockable module
...
When using the maximum_attempts config, Devise actually let you fail n
+ 1 times, not n times.
See https://github.com/plataformatec/devise/issues/2825 for details.
2014-01-06 23:51:45 -05:00
Vasiliy Ermolovich
72a0d9e350
Merge pull request #2822 from plataformatec/rails-4.1
...
Fix specs on Rails 4.1
2014-01-04 10:14:57 -08:00
Vasiliy Ermolovich
6d51e67fac
properly change devise config in specs
2014-01-04 19:19:13 +03:00
Lucas Mazza
7b66133861
Remove subscriber block so it won't leak across the test suite.
2014-01-04 19:01:05 +03:00
Vasiliy Ermolovich
49086d0294
remove warnings regarding number extensions
2014-01-04 18:54:19 +03:00
Vasiliy Ermolovich
1b1be514c8
make webrat compatible with rails 4.1
2014-01-04 18:53:40 +03:00
Vasiliy Ermolovich
9dbc60d36d
update mocha
2014-01-04 18:52:54 +03:00
José Valim
3db4444da8
Update CHANGELOG.md
...
The described change was actually introduced in 2.2.4, closes #2804
2014-01-04 09:48:04 +01:00
José Valim
7a654cdd04
Merge pull request #2809 from moisesweb/mv_access_lock_without_email
...
lock_access! without sending email
2014-01-04 00:37:38 -08:00
Lucas Mazza
02c2ec69dd
Remove platform constraints from the extra gemfiles.
2014-01-03 11:53:13 -02:00
Lucas Mazza
dd95f3f3f7
Support custom port for MongoDB config
2014-01-03 11:23:34 -02:00
Lucas Mazza
0cb74efd79
Remove platform constraint from Gemfile since we do not support 1.8 anymore.
2014-01-03 11:23:01 -02:00
Lucas Mazza
517bde86d2
Update bundler on Travis.
2014-01-03 10:12:30 -02:00
Lucas Mazza
2665afa36f
2014, folks.
2014-01-03 10:12:23 -02:00
Lucas Mazza
0b84a0e7c6
Merge pull request #2819 from salimane/pr_ruby_2_1_0
...
Add Ruby 2.1.0 to .travis.yml
2014-01-03 03:50:11 -08:00
Salimane Adjao Moustapha
db204f33e0
Add Ruby 2.1.0 to .travis.yml
2014-01-03 11:39:16 +01:00
Rafael Mendonça França
89ce9c922c
Merge pull request #2818 from jrmyward/issue-2770
...
Edit is now configurable for devise registrations via path_name.
2014-01-02 19:13:03 -08:00
Jeremy Ward
9d0d15b814
Updated documentation to use 1.9 hash syntax.
2014-01-02 19:02:36 -08:00
Jeremy Ward
b50fa74596
Edit is now configurable for devise registrations via path_name.
2014-01-02 17:49:37 -08:00
Moises Vargas M
be236fa6dd
lock_access! without sending email
2013-12-24 11:51:24 -05:00
José Valim
01e029fd9b
Merge pull request #2806 from keating/master
...
revise readme
2013-12-21 03:21:03 -08:00
keating
4652b3efa0
revise readme
2013-12-21 19:09:09 +08:00
José Valim
29da146c07
Merge pull request #2802 from schneems/schneems/raise_controller_omniauthable
...
[close #2755 ] Raise incompatible route error
2013-12-20 00:53:23 -08:00
schneems
a00921f417
[ close #2755 ] Raise incompatible route error
...
Right now if you try to use a route that you have defined in your `omniauth_callbacks` but you have not declared that resource to be `omniauthable` you will get a weird route missing error which causes the user to look in the routes for the fix:
```ruby
devise_for :users, controllers: {omniauth_callbacks: "users/omniauth_callbacks"}
```
This PR checks to see if the mapping of `:user` has the module `omniauthable` included in it when `omniauth_callbacks` is specified in the route. If it does not, an instructional error is raised:
```
Mapping omniauth_callbacks on a resource that is not omniauthable
Please add `devise :omniauthable` to the `User` model
```
2013-12-18 19:19:25 -06:00
Rafael Mendonça França
71c43926e0
Add security related email address
2013-12-16 17:49:21 -02:00
Erich Kist
380ab682c5
Update travis to run with Rails 3.2-stable, 4.0-stable and master
2013-12-10 19:09:49 -02:00
José Valim
714176994b
Merge pull request #2784 from yokomizor/remove_authentication_token_stuffs
...
Remove authentication some authentication token stuffs
2013-12-10 06:44:46 -08:00
Rogério Yokomizo
8ca34aa41e
Remove authentication some authentication token stuffs
...
Since we don't have authentication token, we don't have to check if
password is "X".
:authentication_token don't have to be in the blacklist for
serialization too.
2013-12-10 12:30:28 -02:00
José Valim
3adeba38f5
Merge pull request #2763 from paulanunda/master
...
Fixed small grammatical error in en.yml
2013-12-09 21:50:20 -08:00
Luiz H. D. Costa
5b6f1e8f80
Merge pull request #2774 from yokomizor/fix_typo
...
Fix typo
2013-12-05 04:45:29 -08:00
Rogério Yokomizo
16ec143228
fix typo and some clarification
2013-12-05 10:39:42 -02:00
José Valim
c67de7e91c
Merge pull request #2772 from sferik/gender_neutral_pronouns
...
Remove a couple more gendered pronouns
2013-12-05 00:09:48 -08:00
Erik Michaels-Ober
3f03ec02ad
Cleanup trailing whitespace
2013-12-05 09:03:32 +01:00
Erik Michaels-Ober
4e7cd18a04
Remove a couple more gendered pronouns
2013-12-05 09:03:28 +01:00
Rafael Mendonça França
01f4a8f441
Merge pull request #2767 from bartoszkopinski/master
...
Removing regexp anchors in routing constraints
2013-12-02 12:39:27 -08:00
Bartosz Kopiński
53893edec8
Removing regexp anchors in routing constraints
...
They're not allowed according to:
http://guides.rubyonrails.org/routing.html#segment-constraints
2013-12-02 21:27:23 +01:00
José Valim
7d11427116
Merge pull request #2766 from sferik/gender_neutral_pronouns
...
Removed use of gendered pronouns
2013-12-02 01:22:46 -08:00
Erik Michaels-Ober
26e85c44e2
Removed use of gendered pronouns
2013-12-02 10:02:17 +01:00
Paul Anunda
43282f738e
Fixed small grammatical error in en.yml
2013-11-28 10:29:50 -06:00
Vasiliy Ermolovich
c2718806a7
Merge pull request #2761 from reu/patch-1
...
Small typo. [ci skip]
2013-11-28 03:01:49 -08:00
Rodrigo Navarro
3e3a3ad102
Small typo.
2013-11-28 09:00:59 -02:00
José Valim
65947b6696
Release v3.2.2
2013-11-25 12:00:21 +01:00
Vasiliy Ermolovich
0028dc6a4f
Merge pull request #2751 from fgo/patch-1
...
Fix spelling in README [ci skip]
2013-11-22 00:57:03 -08:00
Francis Go
f438209669
Fix spelling in README
2013-11-22 19:55:16 +11:00
José Valim
c85ecbb9ac
Merge pull request #2750 from louman/master
...
Timeoutable - fixes missing caller
2013-11-21 08:38:12 -08:00
Marcus Mansur
b16899f7bf
fixes timeoutable specs to cover sign_out_all_scopes false
2013-11-21 14:02:45 -02:00
Marcus Mansur
bd83483ba6
fixes missing caller
2013-11-21 13:26:34 -02:00
José Valim
0514e60bc4
Merge pull request #2749 from csexton/master
...
Keep the query string and path in store_location_for
2013-11-20 13:13:12 -08:00
Christopher Sexton
7afc096fa4
Keep the query string and path in store_location_for
...
Persist the URI's query when saving to the session.
Fixes #2742
2013-11-20 15:47:20 -05:00
Vasiliy Ermolovich
bb2ff3553b
require rails generator base class in devise generators
...
closes #2743
2013-11-15 15:56:09 +03:00
José Valim
1390945e5c
Improve default omniauth sample
2013-11-14 09:09:05 +01:00
José Valim
f36efc0cc9
Ensure multiple leading / are also removed, thanks @homakov
2013-11-13 15:01:23 +01:00
José Valim
3b598ec235
Release v3.2.1
2013-11-13 14:15:13 +01:00
José Valim
95ec62ea76
Ensure encryption on authentication
2013-11-13 13:45:34 +01:00
José Valim
9a412c139f
Update CHANGELOG
2013-11-13 13:32:59 +01:00
José Valim
0582467032
Ensure we only store paths in store_location_for (thanks to @homakov for the tip)
2013-11-13 13:30:24 +01:00
José Valim
221be6d6ef
Update bundled rails app
2013-11-13 13:29:25 +01:00
José Valim
ed86361b92
Merge pull request #2728 from edelpero/master
...
Adds yield around resource on devise controllers
2013-11-08 23:22:53 -08:00
José Valim
e303de9756
Merge pull request #2729 from matthewrudy/store-location-helper
...
Add store_location_for helper
2013-11-08 23:22:39 -08:00
Matthew Rudy Jacobs
268e486dbb
Add store_location_for helper
...
This is used as a complement to `stored_location_for`.
Example:
Before authorizing with Omniauth;
store_location_for(:user, dashboard_path)
redirect_to user_omniauth_authorize_path(:facebook)
In our Omniauth callback
sign_in(user)
redirect_to stored_location_for(:user) || root_path
2013-11-09 00:59:00 +00:00
Ezequiel Delpero
989071144e
Adds yield around resource on devise controllers
...
If you want to add a new behavior to your devise
controllers but you don't want to override devise's
default workflow, just pass a block around resource.
This would give you for example, the ability to
trigger background jobs after user signs in.
2013-11-08 20:43:08 -03:00
Rafael Mendonça França
25726becdd
Merge pull request #2731 from plataformatec/lm-password-digest
...
Bring `password_digest` back.
2013-11-08 10:28:11 -08:00
Lucas Mazza
bf5bcd52cb
Bring password_digest back.
...
This method is part of the protected API and is used by custom
encryption engines (like `devise-encryptable`) to hook the custom
encryption logic in the models.
Fixes #2730
2013-11-08 16:22:31 -02:00
José Valim
e26ea51fe5
Improve error message for wrongly nested omniauth callback
2013-11-07 14:30:32 +01:00
José Valim
c840fc419f
Update Rails 3.2 lock too
2013-11-06 21:50:04 +01:00
José Valim
9d872709c0
Release Devise 3.2.0
2013-11-06 21:39:16 +01:00
José Valim
27bcefcf54
Ensure timeoutable hook respects Devise.sign_out_all_scopes configuration
...
Closes #2606
2013-11-06 21:07:38 +01:00
José Valim
4f1bf8f3f9
Split out sign_in/out functionality so it can be reused in hooks
2013-11-06 20:55:26 +01:00
José Valim
d49f0a1184
Update CHANGELOG
2013-11-06 20:34:57 +01:00
José Valim
a7624c8f51
Merge pull request #2227 from AlexanderZaytsev/master
...
Use mapping.fullpath in omniauth callbacks
2013-11-06 11:32:21 -08:00
andrew morton
52a3768451
A GET to sign in shouldn't extend the session.
2013-11-06 20:20:22 +01:00
José Valim
f5f7e97d8b
Merge pull request #2718 from ssendev/flashing_formats
...
Separate redirects and flash messages in navigational_formats and flashing_formats
2013-11-06 00:10:23 -08:00
José Valim
13117f01be
Merge pull request #2562 from devolute/master
...
passes headers through test helpers' response
2013-11-05 23:59:11 -08:00
Kaworu
fe1fb1f7a2
Don't use config option for flashing_formats
2013-11-01 22:25:15 +01:00
Kaworu
c87809a0f5
Separate redirects and flash messages in navigational_formats and flashing_formats
2013-11-01 21:47:40 +01:00
José Valim
9eb0768cb9
Add Rails 4 related todo
2013-10-31 14:40:44 +01:00
José Valim
e445039716
Merge pull request #2717 from memberful/2716-splat-sanitize-params
...
Splat the arguments to strong_parameters#permit, fixes #2716
2013-10-31 14:40:28 +01:00
José Valim
69d28f9b0e
Add config.last_attempt_warning to default config
2013-10-26 11:56:31 +02:00
José Valim
5cb575bd48
Merge pull request #2705 from 13k/master
...
Fix configuration option name in CHANGELOG.
2013-10-24 14:43:37 -07:00
Kiyoshi '13k' Murata
88de877f8b
Fix configuration option name in CHANGELOG.
...
[ci skip]
2013-10-24 19:37:47 -02:00
José Valim
5a363f5fcb
Merge pull request #2703 from bbenezech/master
...
Add options for FailureApp's i18n_message. Similar #1633
2013-10-24 09:10:19 -07:00
Benoit Bénézech
04e47687b2
remove respond_to in favor of an implementation that returns options
2013-10-24 17:29:53 +02:00
Benoit Bénézech
d5514bf916
Add options for FailureApp's i18n_message. Similar #1633
2013-10-24 16:49:13 +02:00
José Valim
93649e21d0
Merge pull request #2700 from obiwanchinobi/task/document-after-db-auth-hook
...
Add documentation to the 'after_database_authentication' method.
2013-10-23 23:35:47 -07:00
Dave Tong
8bef8b87f1
Add documentation to the 'after_database_authentication' method.
2013-10-24 08:25:00 +11:00
José Valim
fb530110c7
Merge pull request #2697 from Lightpower/feature/last_attempt_message
...
Show last attempt message for last attempt, not for one-before-last one
2013-10-22 01:33:37 -07:00
Vitaly Bezkrovny
bb810cfb8f
* show message for last attempt, not for one-before-last one;
...
* update test to check the message :invalid, :last_attempt, :locked
2013-10-22 00:43:56 +03:00
José Valim
a8069be4c8
Improve devise_for docs to be make routes integration more explicit
2013-10-21 13:28:20 +02:00
Jay Hayes
2296d14803
Add entry to changelog
...
[#2691 ]
[ci skip]
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
Conflicts:
CHANGELOG.md
2013-10-21 13:21:43 +02:00
Jay Hayes
21583cbf95
Update code comment to keep it up to date
...
[#2691 ]
[ci skip]
2013-10-21 13:21:11 +02:00
Jay Hayes
4861436298
Prevent mutation of orig values during case and wspace sanitizations
2013-10-21 13:21:05 +02:00
Vasiliy Ermolovich
844d467ab9
Update CHANGELOG [ci skip]
2013-10-20 17:55:51 +03:00
Vasiliy Ermolovich
520e2845ae
Merge pull request #2689 from Lightpower/master
...
* typo
2013-10-16 14:53:38 -07:00
Vitaly Bezkrovny
aba19c1ca4
* typo
2013-10-16 23:57:11 +03:00
José Valim
986f52df2b
Merge pull request #2687 from Lightpower/master
...
Warning of the last attempt password entering
2013-10-16 01:33:41 -07:00
Vitaly Bezkrovny
e20e446cf4
+ last_attempt
...
+ @@last_attempt_warning
+ last_attempt? method;
* send :last_attempt key if it is the last attempt
+ test for last attempt
* update test to make two asserts
* update message
2013-10-15 01:53:56 +03:00
José Valim
e947a9cbec
Merge pull request #2674 from jessy/master
...
Fix #2673 email templates generated with the good @token
2013-10-08 02:28:30 -07:00
Jessy Bernal
fa06b33dd3
Fix #2673 email templates generated with the good @token
2013-10-08 11:25:04 +02:00
José Valim
31971e69e6
Merge pull request #2669 from plataformatec/pr-2598-fixed
...
Fixed version of PR #2598
2013-10-06 04:22:45 -07:00
Vasiliy Ermolovich
fa16afd90a
add CHANGELOG entry
2013-10-06 14:19:19 +03:00
Vasiliy Ermolovich
0d6493a9a5
proper hash comparing in Devise.bcrypt test
2013-10-06 14:19:08 +03:00
Aaron Patterson
5300bdabc8
add a class method so you can encrypt passwords from fixtures
2013-10-06 13:53:12 +03:00
José Valim
93f59dd63a
Update CHANGELOG.md
2013-10-04 20:04:23 +02:00
José Valim
9281ac3958
Merge pull request #2663 from scaryzet/fix_expire_session_data_after_sign_in
...
Fix expire_session_data_after_sign_in!
2013-10-03 08:40:04 -07:00
Vasiliy Ermolovich
52300c033d
Merge pull request #2662 from plataformatec/issue-2659
...
do not define mailer if ActionMailer is not defined
2013-10-03 08:17:18 -07:00
Vasiliy Ermolovich
036715facc
do not define mailer if ActionMailer is not defined
...
closes #2659
2013-10-03 17:39:04 +03:00
Ivan Zhidkov
2351d0215a
Fix expire_session_data_after_sign_in!
2013-10-03 18:34:39 +04:00
José Valim
eaad61b2da
Make it clear a restart is required when setting the secret key
2013-10-01 17:12:08 +02:00
José Valim
c323065b57
Merge pull request #2634 from gregates/bug/confirmation_workflow
...
Tweaks confirmation flow for signed_in users
2013-09-16 07:17:46 -07:00
Greg Gates
989d7192fa
Tweaks confirmation flow for signed_in users
...
For #2627
When allow_unconfirmed_access_for > 0, users may
be already signed in at the time they confirm
their account. Consequently, the default
confirmation should be compatible with this
possibility. Additionally, they should not be
redirected to the sign in form after confirmation
in this case. So I've changed
ConfirmationsController#after_confirmation_path_for
to send the user to the root path when signed in,
or the sign in form otherwise.
2013-09-16 10:12:15 -04:00
Vasiliy Ermolovich
acefa2f761
Merge pull request #2631 from vipulnsward/cleanup_tests
...
Cleanup tests for unused variables
2013-09-14 14:53:23 -07:00
Vipul A M
ae6a37f796
Cleanup tests for unused variables
2013-09-15 01:52:53 +05:30
Vasiliy Ermolovich
d75fd56f15
remove unused reset_password_token method
...
closes #2621
2013-09-14 12:30:23 +03:00
Vasiliy Ermolovich
4216c34538
fix markdown in CHANGELOG [ci skip]
...
closes #2626
2013-09-13 22:29:34 +03:00
José Valim
b24d178b21
Merge pull request #2628 from ricardohsd/master
...
Update wiki link on README.md
2013-09-13 04:53:58 -07:00
Ricardo Henrique
fc5522a8ed
Update wiki link on README.md
2013-09-13 08:47:27 -03:00
Rafael Mendonça França
041fcf9080
Merge pull request #2608 from benmanns/patch-1
...
Update link to new contributors page
2013-09-04 11:46:07 -07:00
Benjamin Manns
f45d874ed9
Update link to new contributors page [ci skip]
2013-09-04 14:43:45 -04:00
Carlos Antonio da Silva
47d9f1b959
Fix changelog [ci skip]
2013-09-03 08:47:57 -03:00
José Valim
9464416c3e
Bring back test removed by accident
2013-09-02 19:25:05 -03:00
José Valim
6b3b0c5e8c
Remove deprecated token lookups
2013-09-02 19:23:15 -03:00
José Valim
dff7891b97
Get rid of token authentication
2013-09-02 19:15:47 -03:00
José Valim
07f0ee75ee
Link to update gist on CHANGELOG for 3.0 update
2013-09-02 19:04:51 -03:00
José Valim
08edcc10fe
Release 3.1.0
2013-09-02 19:02:48 -03:00
José Valim
2d919fba32
Merge pull request #2582 from tod-uma/master
...
Allowed updating of attributes without a password if password_required? resolves to false.
2013-09-02 14:46:08 -07:00
José Valim
843168d5c7
Merge pull request #2605 from sekrett/master
...
Handle nil failed_attempts
2013-09-02 04:44:48 -07:00
Alexander Zubkov
095572b6fd
Add nulls to migration generator
2013-09-02 15:00:12 +04:00
Alexander Zubkov
b9112d4308
Handle nil failed_attempts
2013-09-02 14:48:19 +04:00
Vasiliy Ermolovich
23c5517009
add test for fc251c306c
2013-08-31 15:25:49 +03:00
José Valim
32e60fade5
Merge pull request #2604 from gregates/revise_locale_messages
...
Fixes incorrect flash message on confirmation
2013-08-31 02:49:02 -07:00
Greg Gates
fc251c306c
Fixes incorrect flash message on confirmation
...
The :confirmed default message in devise.en.yml
used to say "You are now signed in." This is no
longer the default behavior in v3.1.0.
This commit renames that message to
:confirmed_and_signed_in and changes the :confirmed
message to be appropriate for the default post-
confirmation location (which is now the new session
page). The new :confirmed message reads:
"Your account was successfully confirmed. Please
sign in."
2013-08-30 17:16:56 -04:00
Rafael Mendonça França
f6a74e90e5
Merge pull request #2603 from rwz/patch-1
...
Consistent single quotes in devise.rb generator
2013-08-30 09:28:43 -07:00
Pavel Pravosud
91f2bce08e
Consistent single quotes in devise.rb generator
2013-08-30 22:21:12 +07:00
Rafael Mendonça França
5e81210400
Merge pull request #2601 from theodorton/patch-1
...
Typo
2013-08-30 07:39:27 -07:00
Theodor Tonum
4b7fcac23a
Typo
2013-08-30 16:38:34 +02:00
José Valim
213ed81641
Update CHANGELOG.md
2013-08-27 07:05:54 -03:00
José Valim
3232d14b20
token authenticatable mentions
2013-08-21 17:33:38 +02:00
José Valim
949c9e5ded
Remove gem version from README (because it doesn't work when branched)
2013-08-21 17:30:01 +02:00
Tod Detre
66c829eef4
created update_resource method to allow subclass overwritting
2013-08-21 11:04:32 -04:00
Tod Detre
6a22e88dfa
Allowed updating of attributes without a password if password_required? resolves to false
2013-08-20 16:36:35 -04:00
José Valim
605924a921
Add a test related to remember token generation
2013-08-19 20:48:36 +02:00
José Valim
72c3472fe1
Generate remember token
2013-08-19 20:33:21 +02:00
José Valim
ea870e0636
Credit where credit is due [ci skip]
2013-08-18 10:46:00 +02:00
José Valim
3f00d735a4
Mention the security announcement [ci skip]
2013-08-18 10:17:51 +02:00
José Valim
1437ae2ce3
Release v3.1.0.rc2
2013-08-18 10:13:53 +02:00
Andri Möll
052cbef205
Don't confirm email after password reset.
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2013-08-18 10:13:35 +02:00
José Valim
b1754074e5
Only raise on missing secret key after a route is defined
2013-08-18 09:55:05 +02:00
José Valim
e8b70bb04d
Include registration on docs
2013-08-17 09:19:28 +02:00
José Valim
58cbd91512
Do not do double redirect on after confirmation path
2013-08-13 18:55:50 +02:00
Carlos Antonio da Silva
177ed8a356
Bump up lock dependencies
2013-08-13 13:43:40 -03:00
Carlos Antonio da Silva
a5e63d7a28
Update Gemfile.lock with new Devise version
...
Also bump master with latest mongoid
2013-08-13 13:43:21 -03:00
José Valim
5ecbbdf260
Update version.rb
2013-08-13 18:22:19 +02:00
José Valim
efe34219a9
Fix the build on Rails 3.2
2013-08-12 15:36:41 +02:00
José Valim
bc0cab8d60
Update README.md
...
Remove unnecessary maintainers list
2013-08-12 15:25:44 +02:00
José Valim
7e855eddef
Credit where credit is due
2013-08-11 22:30:19 +02:00
José Valim
8541c465d7
Convert CHANGELOG to markdown
2013-08-11 22:20:59 +02:00
José Valim
4e318b5167
Simplify parameter sanitization proposal
2013-08-11 22:20:59 +02:00
Alex Peattie
5e7caffc9e
Extend params sanitizer, to make it easier to add/remove permitted params
...
- Move the default permitted parameters into ParameterSanitizer::PermittedParameters
- Add devise_permitted_parameters helper
- devise_permitted_parameters.add to add permitted parameters
- devise_permitted_parameters.remove to remove Devise's defaults
- devise_permitted_parameters.for to access the parameters for a given action
- Update 'Strong Parameters' section of README
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2013-08-11 22:20:59 +02:00
José Valim
87edf0fbcf
Merge pull request #2564 from glebm/doc-confirmable-fix
...
fix doc typo
2013-08-09 23:49:44 -07:00
Gleb Mazovetskiy
e7de0d4c4c
fix doc typo
2013-08-10 04:43:25 +02:00
José Valim
2a8d0f9bee
Update CHANGELOG
2013-08-09 10:30:29 +02:00
chris
a1d83d5d4e
passes headers through test helpers' response
2013-08-09 09:51:05 +02:00
José Valim
4681f81ce6
Document the :store option for sign in
2013-08-09 08:37:27 +02:00
José Valim
86f2696b84
Merge pull request #2529 from papercavalier/lang-edit
...
Grammar
2013-08-08 13:39:50 -07:00
José Valim
20cf73facf
Merge pull request #2549 from joaomilho/master
...
Using urlsafe_base64 cause it already handle url sensitive chars, keepin...
2013-08-08 13:38:05 -07:00
José Valim
d0219d914f
Merge pull request #2560 from aarvay/patch-1
...
Added an extra validation to shared links
2013-08-08 13:37:45 -07:00
José Valim
50d17bbb8e
Update CHANGELOG
2013-08-08 22:37:15 +02:00
José Valim
3dccf3c6ff
Do not sign in after confirmation
2013-08-08 22:33:58 +02:00
Vignesh Rajagopalan
acd33174fc
Added an extra validation to shared links
2013-08-08 18:05:19 +05:30
José Valim
d56641f514
Move to SHA256
2013-08-06 12:14:51 +02:00
José Valim
354e5022bf
Only allow insecure token lookup if a flag is given
2013-08-06 11:55:13 +02:00
José Valim
3cdbf15fe9
Update OTHER lock
2013-08-05 19:24:04 +02:00
José Valim
143794d701
Use HMAC on tokens stored in the DB
2013-08-05 18:56:07 +02:00
Juan Lulkin
4048545151
Using urlsafe_base64 cause it already handle url sensitive chars, keeping the replacement of the confusing chars, though
2013-08-05 14:54:56 +03:00
José Valim
32648027e2
Add Devise::KeyGenerator
2013-08-05 11:47:36 +02:00
José Valim
7e96bac6a4
Get rid of deprecated code
2013-08-05 11:24:04 +02:00
José Valim
f5a77ac598
Skip storage for cookies on unverified requests
2013-08-05 10:24:11 +02:00
José Valim
591f4a97f7
Update the OTHER gemfile
2013-08-02 23:57:43 +02:00
José Valim
cf1989e1da
Update Gemfile.lock
2013-08-02 23:43:07 +02:00
José Valim
7c8c0f8dba
Release 3.0.1
2013-08-02 23:25:11 +02:00
José Valim
66afa2a2bf
Update CHANGELOG
2013-08-02 23:14:54 +02:00
José Valim
747751a20f
Protect against CSRF token fixation attacks
2013-08-02 23:13:15 +02:00
José Valim
8e0327e203
Merge pull request #2530 from barodeur/patch-1
...
Remove trailing whitespaces
2013-07-28 14:25:39 -07:00
Paul Chobert
d88b3cedfb
Remove trailing whitespaces
2013-07-28 23:15:42 +02:00
hakanensari
9a60415e2e
Fix assertion
2013-07-26 19:31:49 +01:00
hakanensari
b861a65e72
Fix run-on sentence
2013-07-26 14:24:19 +01:00
hakanensari
1ab7792beb
Fix grammar
2013-07-26 14:24:13 +01:00
José Valim
c4d5a3fdaa
No need to assert for a message we won't receive
2013-07-26 10:00:09 +02:00
José Valim
11a77055f1
Merge pull request #2525 from jetthoughts/timeoutable-without-rememberable
...
Fixed checking for rememberable in timeoutable
2013-07-26 00:58:09 -07:00
José Valim
9bc8e1211b
Update CHANGELOG
2013-07-26 09:22:59 +02:00
José Valim
cd1bc53947
Do not generate attr_accessible for any Rails 4 app
2013-07-26 09:22:03 +02:00
Michael Nikitochkin
fffbeb5cc7
Fixed bug when user has field remember_created_at but the module rememberable is not enabled for the user
2013-07-26 10:20:29 +03:00
José Valim
7539d31a05
Update 3.2 Gemfile
2013-07-26 09:17:35 +02:00
José Valim
78fedd6c10
Merge pull request #2523 from Neschur/add_method_after_confrimation
...
Added method after_confrimation
2013-07-25 23:59:50 -07:00
José Valim
14a0cfefaa
Merge pull request #2522 from jcoyne/attr_accessible
...
When using rails 3.2, the generator adds 'attr_accessible' to the model....
2013-07-25 23:56:03 -07:00
Justin Coyne
b7e67115fc
When using rails 3.2, the generator adds 'attr_accessible' to the model. Fixes #2515
2013-07-23 22:49:05 -05:00
Siarhei Hanchuk
b7bc8dec12
Added method after_confrimation
2013-07-23 14:19:58 +03:00
José Valim
b8ed2f3160
Clarify the roles of Devise models
2013-07-23 10:21:01 +02:00
José Valim
b46b7e3736
Release v3.0.0
2013-07-14 20:40:56 +02:00
José Valim
c5ef39f087
Bump to Warden 1.2.3
2013-07-14 20:40:09 +02:00
José Valim
cfb8228de9
Merge pull request #2506 from mxhold/master
...
Update README.md
2013-07-14 11:20:35 -07:00
Max Holder
4e0c598de1
Update README.md
...
Replace case statement with if statement since we're comparing two equivalent classes (which would never be case equivalent).
2013-07-14 10:35:11 -04:00
José Valim
fed6a92d55
Merge pull request #2504 from plataformatec/remember-me
...
Add remember_me to the permitted sign_in params
2013-07-12 12:19:35 -07:00
Vasiliy Ermolovich
2c1ca126f4
add remember_me to the permitted sign_in params
2013-07-12 22:14:32 +03:00
Vasiliy Ermolovich
36fb1ecf4d
update Gemfile.lock
2013-07-12 22:13:52 +03:00
José Valim
08986dbd4b
Merge pull request #2502 from slainer68/readme_strong_parameters
...
Update README.md [ci skip]
2013-07-12 04:26:59 -07:00
Nicolas Blanco
b69d2c412f
Update README.md [ci skip]
...
Fix the example for Strong parameters multi roles as resource_class is actually a class not an instance.
2013-07-12 13:25:26 +02:00
José Valim
6f5d176e8e
Bump warden dependency
2013-07-12 13:00:31 +02:00
José Valim
57515de5ad
Update to Rails 4.0
2013-07-09 09:09:22 +02:00
José Valim
49aebde435
Update CHANGELOG
2013-07-09 09:05:19 +02:00
José Valim
bc598b9da3
Merge pull request #2452 from latortuga/bad-strong-params-on-failed-login
...
Add failing test case for bad parameter sanitizing when failing to login
2013-07-08 23:53:41 -07:00
José Valim
da0323e591
Merge pull request #2419 from plataformatec/issue-2418
...
set error to the field specified in unlock_keys config
2013-07-08 23:52:19 -07:00
José Valim
061e9d7404
Merge pull request #2475 from tkhr/enable_skipping_reconfirmation_notification_but_regenerate_confirmation_token_2
...
Enable to skip sending reconfirmation email when reconfirmable is on and skip_confirmation_notification! is invoked
2013-07-08 23:51:42 -07:00
José Valim
3c519b13ff
Merge pull request #2485 from betelgeuse/changelog_fix
...
CHANGELOG fix about _links.erb partial revert
2013-07-03 03:58:13 -07:00
Petteri Räty
aeec6138c2
CHANGELOG fix about _links.erb partial revert
...
9bf718 got reverted by aa2d15 but the CHANGELOG was not reflected to
show this.
2013-07-03 13:34:25 +03:00
José Valim
75ad4ee87b
Add thread-safety support note
2013-06-30 14:18:57 +02:00
Drew Ulmer
e029ad7b0c
Fix improper login param sanitization permit
...
This includes a failing test case that hooks into ActiveSupport
Notifications to catch the param permit error.
2013-06-25 13:44:39 -05:00
José Valim
225afe6813
Merge pull request #2480 from robinroestenburg/patch-1
...
Updated section 'Configuring controllers'
2013-06-25 04:19:23 -07:00
Robin Roestenburg
8487637b2f
Updated section 'Configuring controllers'
...
I added an extra note in the section on creating a custom (namespaced) controller.
This controller needs to be created in a directory in order for it to work. Otherwise (for example when creating the controller in `app/controllers`) a `uninitialized constant Admins` error is thrown.
Also, fixed the Markdown formatting for the numbered lists in the README.
2013-06-25 14:01:11 +03:00
José Valim
8978bd4fe0
Merge pull request #2479 from djmaze/patch-1
...
Update code example for #update_without_password
2013-06-25 02:30:41 -07:00
Martin Honermeyer
5926898cf4
Update code example for #update_without_password
2013-06-25 11:27:35 +02:00
Takehiro Adachi
df2995ce19
Enable to skip sending reconfirmation email when skip_confirmation_notification! is invoked
...
We could always generate a confirmation token but not sending a
confirmation email by invoking the skip_confirmation_notification!
method when creating the account.
But there were no way to do that when we were turning on reconfirmable
and updating email.
2013-06-20 08:21:54 +09:00
José Valim
5717c6f082
Splat args to be sanitized
2013-06-19 10:37:37 +02:00
José Valim
72cf2481b5
Rename ParamFilter to ParameterFilter for consistency
2013-06-19 09:17:54 +02:00
José Valim
5c39a0c6d1
Merge pull request #2458 from t-kot/fix_access_locked_return_value
...
Fix access_locked? always return boolean
2013-06-12 20:45:25 -07:00
José Valim
56a26bd280
Merge pull request #2464 from sslotnick/expose_reset_confirm_tokens
...
Expose reset password and confirmation tokens
2013-06-12 20:44:45 -07:00
Steve Slotnick
b194882b23
Renaming get_or_create_*_token to ensure_*_token to match API in token authenticatable
2013-06-12 15:10:14 -07:00
Steve Slotnick
b5909f9b93
changing name from *_token! to get_or_create_*_token
2013-06-11 14:14:17 -07:00
Steve Slotnick
3c9cfa50c0
Adding publicly available methods on Recoverable and Confirmable to retrieve tokens
2013-06-10 19:17:19 -07:00
t-kot
e632240aee
Fix access_locked? always return boolean
2013-06-07 12:11:00 +09:00
José Valim
176158a309
Just for Rails 3.2
2013-06-06 00:45:02 +08:00
Vasiliy Ermolovich
2503f2d0a8
Merge pull request #2453 from jroes/patch-1
...
Code formatting for class names and command [ci skip]
2013-06-05 06:32:02 -07:00
Jonathan Roes
85897b4fe2
Code formatting for class names and command
2013-06-05 09:22:55 -04:00
José Valim
fdd47d74db
We are not duck typing here, so don't call the variable duck
2013-06-01 10:06:33 +09:00
Carlos Antonio da Silva
ae4448403c
Change flash message to alert instead of error
...
Devise uses the defaults :notice and :alert everywhere, this one seems to
have been missed since it was introduced in
ff75341c75 .
2013-05-29 21:34:28 -03:00
José Valim
2ead747be6
Merge pull request #2444 from julp/no_ghost_transactions
...
Fix empty transactions created by devise
2013-05-29 16:50:41 -07:00
julp
10aadee637
record is potentially unchanged here, if so, no needs to save it
2013-05-29 19:27:02 +02:00
julp
7670eb8e98
don't update failed_attempts attribute if already equal to 0
2013-05-29 19:24:51 +02:00
José Valim
486dc65884
Merge pull request #2430 from kramerc/blank-email
...
Avoid sending confirmations to blank emails.
2013-05-27 12:13:05 -07:00
Kramer Campbell
17e85aa79d
Avoid sending confirmations to blank emails.
...
At times, validations may be skipped and no email address may be
provided. Such an instance comes when testing uniqueness validations of
specific attributes in a Devise model with confirmable, especially when
using Shoulda matchers.
2013-05-22 19:48:06 -07:00
José Valim
10c9a492ab
Merge pull request #2427 from plataformatec/issue-2421
...
redirect user to the referrer if latest request was not GET after timeout
2013-05-19 08:07:43 -07:00
Vasiliy Ermolovich
b7079c7cf2
redirect user to the referrer if latest request was not GET after timeout
...
closes #2421
2013-05-19 17:11:34 +03:00
Vasiliy Ermolovich
55e69b18a4
Merge pull request #2424 from emilsoman/doc-fix
...
Update doc to mention http_authenticable is false by default [ci skip]
2013-05-17 14:29:31 -07:00
Emil Soman
020341176c
Update doc to mention http_authenticable is false by default
2013-05-18 01:50:06 +05:30
Vasiliy Ermolovich
a79846730e
Merge pull request #2422 from x3qt/patch-1
...
Fix typo in README.md [ci skip]
2013-05-17 04:19:16 -07:00
Yuri Pole
48eea9d325
Fix typo in README.md
2013-05-17 14:08:08 +03:00
Vasiliy Ermolovich
dd7c3ee91f
set error to the field specified in unlock_keys config
...
closes #2418
2013-05-14 17:41:47 +03:00
José Valim
4e2cdc2d5b
Merge pull request #2413 from jbhannah/master
...
Fix redundant assignment of self.resource in Devise::RegistrationsController
2013-05-09 21:40:11 -07:00
Jesse B. Hannah
545a5cec3b
Fix redundant assignment of self.resource in Devise::RegistrationsController
...
Devise::RegistrationsController#create set self.resource to the return value of build_resource--which is nil, because build_resource sets self.resource to an actual resource object. This caused attempting to save the resource (two lines down) to fail with "undefined method `save' on nil:NilClass."
2013-05-09 18:33:30 -06:00
José Valim
ab77e08690
Update README.md
2013-05-07 16:18:48 -06:00
Carlos Antonio da Silva
39c1a2c7d0
Release 3.0.0.rc with Rails 4 support
2013-05-07 13:32:03 -03:00
Carlos Antonio da Silva
270e2ece19
Merge pull request #2376 from plataformatec/rails4
...
Support Rails 4
Keep compatibility with Rails 3.2. Drop support to Ruby 1.8.
2013-05-07 09:22:23 -07:00
Carlos Antonio da Silva
6b5988d756
Add changelog note about Rails 4 and Strong Params support
...
Plus dropping support for Rails < 3.2 and Ruby < 1.9.3
[ci skip]
2013-05-07 13:12:58 -03:00
Carlos Antonio da Silva
a4efbb9ad6
Update mongo revision
2013-05-07 13:05:02 -03:00
Carlos Antonio da Silva
eb0ad1c21a
Merge branch 'master' into rails4
2013-05-07 13:01:34 -03:00
Carlos Antonio da Silva
f5e33089a0
Release 2.2.4
2013-05-07 12:51:46 -03:00
José Valim
e499fadf52
Use persisted? in order to check if the record was destoryed or not
2013-05-07 08:55:30 -06:00
Carlos Antonio da Silva
70199ed039
Bump webrat to 0.7.3 on 3.1 as well
2013-05-07 11:48:03 -03:00
Carlos Antonio da Silva
fb07558082
Update changelog with latest fixes [ci skip]
2013-05-07 11:48:03 -03:00
José Valim
5ad122b928
Fix build for mongoid
2013-05-07 08:47:18 -06:00
José Valim
c78b4b40c1
Remove warning since webrat is emitting tons of them
2013-05-07 08:22:06 -06:00
José Valim
ef2a2280a3
Update examples to be compatible with Rails 4
2013-05-07 08:18:12 -06:00
Carlos Antonio da Silva
42fca4dbe5
Update 3.1 lock file
2013-05-07 11:12:58 -03:00
José Valim
03f2a6a5e4
Merge pull request #2392 from michiel3/master
...
Add destroy_with_password method
2013-05-07 07:11:47 -07:00
José Valim
cc2fea8276
Merge pull request #2402 from xtream/master
...
Avoid duplication on param filter
2013-05-07 07:09:47 -07:00
José Valim
bb4cc2428f
Merge pull request #2407 from sebastianwr/master
...
No redirect when accessing devise API via JSON
2013-05-07 07:08:53 -07:00
Sebastian Wramba
43f7cf0f12
No redirect when Devise API is accessed via JSON
2013-05-07 10:18:23 +02:00
Carlos Antonio da Silva
bb5d65209a
Change rubygems source to use https [ci skip]
2013-05-06 23:04:49 -03:00
Carlos Antonio da Silva
69f79ad446
Let Devise play with both Rails 3.2 and Rails 4 for now
2013-05-05 19:55:06 -03:00
Victor Cruz Dueñas
75fdd2944d
Avoid hash mutation
2013-05-05 10:12:57 +02:00
Victor Cruz Dueñas
ae48fc8419
Refactor to avoid duplication on param filter
2013-05-05 01:19:37 +02:00
Victor Cruz Dueñas
d6d61fc5be
Adding tests for case_insensitive_keys and strip_whitespace_keys to param filter
2013-05-05 01:02:48 +02:00
Victor Cruz Dueñas
19c8f0c0ad
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
app/controllers/devise/registrations_controller.rb
test/integration/registerable_test.rb
2013-05-05 00:20:34 +02:00
Rafael Mendonça França
63627d1439
Refactoring the code a little bit
...
* Rename #get_constraints_given_method to #constraints_for to make the
method clear.
* The method name now is required.
* Use symbols instead of strings.
* Make #constraints_for a protected method.
2013-05-04 14:33:55 -03:00
José Valim
662f0e76d8
Merge pull request #2401 from jd-erreape/master
...
Refactor to avoid repeated code
2013-05-04 09:06:16 -07:00
DI2uNk
eadce2fef6
Refactored rails/routes.rb to avoid repeated code
2013-05-04 11:56:56 +02:00
Carlos Antonio da Silva
0fe0373144
Fix location of parameter sanitizer in docs [ci skip]
2013-05-03 22:52:26 -03:00
Carlos Antonio da Silva
1f9ebbd9f4
Update gemspec dependency to Rails 4 rc1 as well
2013-05-03 22:04:27 -03:00
Carlos Antonio da Silva
a0058d5fbf
Add some spaces, remove comment
2013-05-03 21:52:00 -03:00
Carlos Antonio da Silva
e8d1c9ca23
Bump rails version to 4.0.0.rc1, closes #2399
2013-05-03 10:00:39 -03:00
Carlos Antonio da Silva
d9d5ae3d58
Correct OrderedHash initialization to ensure keys order in 1.8.7
...
This should hopefully fix the build with 1.8.7 🙏
2013-05-01 21:35:03 -03:00
Rafael Mendonça França
b51c7fe59b
Merge pull request #2396 from nickborromeo/show_license_in_gemspec
...
Fix gemspec so that MIT license will be visible when running the -d flag
Closes #2390
2013-04-30 10:34:54 -07:00
Nick Borromeo
a6b754b697
Fix gemspec so that MIT license will be visible when running the -d flag
2013-04-30 10:23:50 -07:00
Michiel Prins
92218e9ecc
Remove unnecessary code
2013-04-29 15:21:31 +02:00
Michiel Prins
60e933df73
Add destroy_with_password method
2013-04-29 15:06:13 +02:00
José Valim
b451fc0aad
Merge pull request #2391 from stereoscott/patch-1
...
Fix spelling error in doc block
2013-04-28 22:20:59 -07:00
Scott M
2f28e48f54
Fix spelling error in doc block
2013-04-29 01:52:37 -03:00
Carlos Antonio da Silva
76e4967ca1
Update travis-ci link in README [ci skip]
2013-04-28 13:06:08 -03:00
Vasiliy Ermolovich
dceb788c6b
fix OrderedHash initialization
2013-04-23 10:37:10 +03:00
Vasiliy Ermolovich
fae8e977e8
use ordered hash to fix tests on ruby 1.8
2013-04-22 22:42:49 +03:00
Vasiliy Ermolovich
0a588fab3a
update CHANGELOG [ci skip]
2013-04-22 17:51:54 +03:00
Vasiliy Ermolovich
bbf57214ac
Merge pull request #2384 from worker8/after_reset_password_redirect_path
...
Add ability to override the redirect path after user has reset their password
2013-04-22 07:36:41 -07:00
Tan Jun Rong
804fbdf6d5
Fix spelling error, 'reseting' to 'resetting'
2013-04-22 22:25:40 +08:00
Tan Jun Rong
e4987e8bb7
Fix resource_name to resource
2013-04-22 21:40:52 +08:00
Tan Jun Rong
9d5a9c8a61
Add ability to override the redirect path after user has reset their password
2013-04-22 20:22:53 +08:00
Carlos Antonio da Silva
c8aa5f3e62
Bump webrat to 0.7.3
2013-04-19 20:38:39 -03:00
Carlos Antonio da Silva
df4b282566
Set variable to false instead of nil
2013-04-19 19:59:08 -03:00
Carlos Antonio da Silva
b8c5d76c5a
Merge pull request #2380 from vipulnsward/fix_warnings
...
fix some warnings
2013-04-19 15:53:43 -07:00
Vipul A M
b871bd5036
fix some warning
2013-04-19 19:08:20 +05:30
José Valim
c439b80524
Merge pull request #2381 from vipulnsward/enable_warinings
...
enable warnings by default
2013-04-18 13:40:01 -07:00
Rafael Mendonça França
704221d48f
Merge pull request #2379 from vipulnsward/remove_unused_vars
...
Remove unused variables and fix typos
2013-04-18 06:38:32 -07:00
Vipul A M
da70348662
enable warnings by default
2013-04-18 11:07:36 +05:30
Vipul A M
2e6457006e
Remove unused variables and fix typos
2013-04-18 10:24:38 +05:30
Carlos Antonio da Silva
1f68309c47
✂️ changelog [ci skip]
2013-04-15 15:50:06 -03:00
José Valim
c618969677
Update README.md
2013-04-14 08:49:30 -07:00
Lucas Mazza
93013c2e89
Merge pull request #2366 from hauleth/extract-lookup-for-i18n
...
Extract get_message
2013-04-14 08:21:19 -07:00
José Valim
8ec89bf659
Update README.md
2013-04-13 23:39:32 -07:00
José Valim
b3edfeab73
Update README.md
2013-04-13 23:35:58 -07:00
José Valim
c63483ae24
Merge branch 'latortuga-rails4-sp' into rails4
2013-04-13 23:34:25 -07:00
José Valim
3ed0dc5d9f
Update README
2013-04-13 23:34:07 -07:00
José Valim
8a93c34080
Clean up Devise parameter sanitizer
2013-04-13 23:21:46 -07:00
José Valim
2dfa7e1761
Update CHANGELOG
2013-04-13 22:10:48 -07:00
José Valim
5bf4f57fcf
Tidy up devise configuration
2013-04-13 22:07:54 -07:00
José Valim
1b8fd7c2ff
Merge pull request #2271 from robhurring/master
...
Allowing http token auth to set the token_authentication_key if missing from params
2013-04-13 21:39:36 -07:00
Carlos Antonio da Silva
f75352a373
Merge branch 'master' into rails4
2013-04-13 11:37:48 -03:00
Carlos Antonio da Silva
fa5ae57ce4
Use instance_eval instead of Proc#bind
...
Keep the implementation more similar to how it works in Action Mailer,
and avoid deprecation warnings with Proc#bind being raised in rails4
branch.
2013-04-13 11:35:51 -03:00
Carlos Antonio da Silva
ac2ebdfb11
Fix session store changed in Rails master
...
There's no encrypted cookie store anymore, by default the cookie store
will be encrypted.
2013-04-13 11:16:11 -03:00
Carlos Antonio da Silva
ea94e199ce
Bundle update
2013-04-13 11:14:13 -03:00
Carlos Antonio da Silva
d89dad5728
Bundle update for both Rails 3.1 and 3.2, update mocha, fix failing tests
2013-04-13 11:08:27 -03:00
Carlos Antonio da Silva
32a141d2a9
Fix typo in test descriptions
2013-04-13 10:54:52 -03:00
Carlos Antonio da Silva
36557ef641
✂️ [ci skip]
2013-04-13 10:53:49 -03:00
José Valim
aa24335656
Merge pull request #2371 from tomasv/custom-devise-mailer-default-proc-fix
...
Fix devise sender bug with custom devise mailers.
2013-04-12 08:37:31 -07:00
Tomas Varneckas
1acd3d1790
Fix devise sender bug with custom devise mailers.
...
The devise sender detection must take into account that the default
sender set in the custom devise mailer can be a proc.
2013-04-12 16:48:48 +03:00
Drew Ulmer
d20fdf87b6
Introduce BaseSanitizer null sanitizer and controller-specific callbacks
...
This updates Devise's StrongParameter support to feature:
- A Null base sanitizer to support existing Rails 3.x installations that
don't want to use StrongParameters yet
- A new, simpler API for ParameterSanitizer: #permit, #permit!, and #forbid
- Overrideable callbacks on a controller-basis, e.g. #create_sessions_params
for passing the current scope's parameters through StrongParameters and
a helper method, whitelisted_params, for rolling your own implementations
of #create_x_params in your own controllers.
- Lots of tests!
2013-04-10 10:33:50 -05:00
Łukasz Niemier
95f56258d7
Rename get_message to find_message and fix set_flash_message
2013-04-07 08:52:11 +02:00
Łukasz Niemier
8e9ad4626e
Extract get_message
2013-04-06 18:46:21 +02:00
José Valim
2de7cbae25
Merge pull request #2363 from eloyesp/documenting_protected_methods
...
Generate documentation for protected methods.
2013-04-04 06:52:08 -07:00
Eloy Espinaco
37473cdaf7
Add config to customize documentation.
2013-04-04 09:48:33 -03:00
Lucas Mazza
bf30d79aca
Update rubygems url inside Gemfile.lock
2013-04-03 10:22:46 -03:00
José Valim
148fa99dce
Merge pull request #2330 from pungoyal/master
...
Language copy changes
2013-04-01 12:20:02 -07:00
Drew Ulmer
77203e3d97
Change parameter sanitizer instance method to scope to devise
...
This way it's very explicit that this method is for devise and it won't
run into any naming collisions with user code.
2013-04-01 09:46:46 -05:00
Drew Ulmer
b151d2cfe2
Remove MassAssignment security from Mongoid test shim
2013-04-01 09:00:36 -05:00
Drew Ulmer
e0ffe8f85f
Fix internal helper test referencing resource_params
2013-03-31 21:31:54 -05:00
Drew Ulmer
78f137368c
Add support for Rails 4 strong_parameters
...
This brings support for Rails 4 StrongParameters changes.
- Parameter sanitizing is setup for Devise controllers via
resource_params except Omniauth Callbacks which doesn't use
resource_params.
- Change #build_resource to not call resource_params for get requests.
Parameter sanitizing is only needed when params are posted to the
server so there's no need to try to construct resource params on get
requests (new, edit).
2013-03-31 21:31:48 -05:00
Drew Ulmer
af4a582300
Remove mass-assignment role-based tests, no longer supported in Rails 4
...
Mass-assignment security roles are removed in Rails 4 so there's no need
to test :as => :role behavior.
2013-03-31 15:21:49 -05:00
Drew Ulmer
2f88f7c0ed
Remove protected_attributes gem and all whitelisting
2013-03-31 15:21:49 -05:00
Lucas Mazza
ce37c301ff
Update Rails dependency
2013-03-31 17:19:10 -03:00
Lucas Mazza
bd14589fe4
Ensure that include_root_in_json is true since our test suite depends on that.
2013-03-31 17:18:41 -03:00
Lucas Mazza
c07bc69fad
Install Mongoid in Ruby 2.0
2013-03-31 17:18:02 -03:00
Rafael Mendonça França
9a8cb011d7
Use the latests Rails version
2013-03-28 14:00:55 -03:00
Rafael Mendonça França
335a6af861
Merge branch 'master' into rails4
2013-03-28 13:51:12 -03:00
Vasiliy Ermolovich
72cbafa322
Merge pull request #2340 from scottjacobsen/master
...
s/reseting/resetting
[ci skip]
2013-03-22 00:17:20 -07:00
Scott Jacobsen
4549d8c65f
Update recoverable.rb
...
Fix type-o.
2013-03-21 18:49:19 -06:00
Vasiliy Ermolovich
6c566c1ca4
Merge pull request #2331 from yxhuvud/master
...
License information to gemspec.
[ci skip]
2013-03-16 09:06:04 -07:00
linus
41aed807fc
Add license to gemspec.
2013-03-16 09:29:46 +01:00
Puneet Goyal
ddea9359a6
Removing an extra full stop
2013-03-15 15:19:52 +05:30
Puneet Goyal
5d87e150f7
removing an extra full stop
2013-03-15 15:18:45 +05:30
José Valim
d90e365636
Merge pull request #2315 from neo/http_auth_key
...
Allow explicit configuration of http auth key
2013-03-07 09:43:08 -08:00
Lucas Mazza
22442907af
Fix send_devise_notification arity in the documentation.
...
[ci skip]
2013-03-05 15:55:19 -03:00
robhurring
10f58b636f
update devise config template with new allow_token_authenticatable_via_headers options
2013-03-04 17:38:36 -05:00
robhurring
2d14bd2826
removing params hash merging of token and mimicking http basic auth flow
2013-03-04 17:33:27 -05:00
Matt Jones + Tony Schneider
f4ceecece4
Allow explicit configuration of http auth key
...
- Fix basic auth case in which authorized_keys is configured as hash
- Duplicate existing functionality when http_auth_key is not explicitly
set
2013-03-04 12:23:05 -05:00
José Valim
359fdd840c
Merge pull request #2311 from pixeltrix/improve-delayed-email-documentation
...
Improve documentation on sending delayed emails
2013-03-01 06:49:39 -08:00
Andrew White
c6578250d2
Improve documentation on sending delayed emails
...
There are a couple of gotchas in the existing documentation
about the `send_devise_notification` hook.
1. The `after_commit` callback can be called multiple times
so you should clear the array otherwise any additional
invocations will trigger extra copies of the email.
2. The `after_commit` callback is only called when a record
is created or updated so you need to check for `new_record?`
or `changed?` before adding it to `pending_notifications`
otherwise it's okay to send it immediately.
The `new_record? || changed?` condition is necessary because
the latter isn't always true for new records, e.g:
>> User.new.changed?
=> false
[ci skip]
2013-03-01 14:32:15 +00:00
José Valim
dc14c76ff6
Merge pull request #2308 from vfrride/patch-1
...
updates source url to use https
2013-02-27 18:59:31 -08:00
vfrride
5e74fd406b
updates source url to use https
2013-02-27 21:39:45 -05:00
José Valim
ebeee33429
Run image optimizer on the logo (i'm done)
2013-02-26 11:36:25 -07:00
José Valim
e449c3b6d2
Update badges
2013-02-26 11:27:58 -07:00
José Valim
58871172ab
Crop the logo a bit more 💣
2013-02-26 11:25:26 -07:00
José Valim
41a2d65ade
Reduce logo dimentions
2013-02-26 11:23:11 -07:00
José Valim
e6dc425abb
Add Devise logo
2013-02-26 11:19:48 -07:00
Carlos Antonio da Silva
d29b744d92
Enable Ruby 2.0 in travis
2013-02-25 22:13:48 -03:00
Carlos Antonio da Silva
e79ebe8aec
Fix last mongoid tests since it does not have the order method
2013-02-25 22:13:36 -03:00
Santiago Pastorino
10f93129c3
Rails 4 now raises ActionController::UrlGenerationError
...
This is the commit in Rails
https://github.com/rails/rails/commit/db06d128
2013-02-25 22:12:21 -03:00
Santiago Pastorino
04d9512f30
We need to do match via [get, post]
2013-02-25 22:12:20 -03:00
Santiago Pastorino
135c8da390
To be able to post to root via is now needed
2013-02-25 22:12:20 -03:00
Carlos Antonio da Silva
aca7e5d162
Run tests with mongoid
2013-02-25 22:12:20 -03:00
Carlos Antonio da Silva
02298117a0
Do not remove app/mailers from autoloaded paths
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
7998d6f878
Match full template name
2013-02-25 22:12:06 -03:00
Vasiliy Ermolovich
ed6e232756
assert_recognizes rises Assertion instead of RoutingError
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
567fabbbc6
Disable forcing whitelist attributes from protected attributes
...
This was the previous functionality since we didn't set anything in the
application configuration. Now when using protected attributes gem, it
sets whitelist to true, forcing us to always declare the accessible
attributes, and this is not the case for the Admin model.
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
d77a956276
Remove AR deprecated finder warnings
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
3c885e043d
Fix changed error messages from confirmation validation
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
9ae013ae3c
Updating test app running rake rails:update, tests running with failures
2013-02-25 22:12:06 -03:00
Carlos Antonio da Silva
1bae64d8c4
Update dependencies for Rails 4
2013-02-25 22:11:49 -03:00
Carlos Antonio da Silva
f8792c8cf0
Update to Rails 3-2-stable and fix failing tests
2013-02-25 22:06:10 -03:00
Lucas Mazza
198bfff2de
Merge pull request #2300 from fphilipe/scoped-serialization
...
Make use of warden's scoped serialization
2013-02-25 15:32:43 -08:00
Lucas Mazza
d3f0665105
Merge pull request #2305 from gregates/feature/skip_confirmation_notice!
...
Changelog for #2296
2013-02-25 15:31:56 -08:00
Greg Gates
77b960f14a
Changelog for #2296
2013-02-25 18:23:43 -05:00
José Valim
b388aae473
Merge pull request #2302 from islandr/master
...
Mention devise-encryptable requirement in initializer template
2013-02-25 14:05:15 -08:00
José Valim
81c6d70b7c
Merge pull request #2296 from gregates/feature/skip_confirmation_notice!
...
Add #skip_confirmation_notification! to Confirmable
2013-02-25 14:01:54 -08:00
Ryan Mohr
f3928d8462
Mention devise-encryptable requirement for anything but bcrypt.
2013-02-25 10:42:06 -10:00
Philipe Fatio
c22d755cf4
Make use of warden's scoped serialization
2013-02-25 07:38:42 +01:00
Greg Gates
72cfaad618
Add #skip_confirmation_notification to Confirmable
2013-02-22 12:43:01 -05:00
José Valim
22897150d8
Merge pull request #2278 from plataformatec/issue-2275
...
allow_unconfirmed_access_for set to nil means unconfirmed access for unlimited time
2013-02-14 11:30:51 -08:00
Vasiliy Ermolovich
395a69b4ef
allow_unconfirmed_access_for set to nil means unconfirmed access for unlimited time
...
closes #2275
2013-02-13 21:17:38 +03:00
Rob
547439d94c
renaming devise option "allow_authorization_to_set_auth_token" to "allow_token_authenticatable_via_headers"
2013-02-10 12:50:52 -05:00
Rob
84f743c4ef
adding http token auth options to env[devise.token_options]
2013-02-10 12:48:02 -05:00
Rob
22a8cfe6d3
fix hanging line on method call
2013-02-09 15:19:42 -05:00
Rob
3025b7e2f7
Allow http token authorization to set token_authentication_key in place of passing it in via params
...
It will not override existing token_authentication_key params if they are present.
2013-02-09 15:12:36 -05:00
Vasiliy Ermolovich
1b2460171e
Merge pull request #2261 from plataformatec/issue-2253
...
use scoped path to shared views if scope is present
2013-02-08 15:43:39 -08:00
Vasiliy Ermolovich
f822f92321
use scoped path to shared views if scope is present
...
closes #2253
2013-02-09 02:35:06 +03:00
Lucas Mazza
042ba76480
Merge pull request #2263 from sboesen/patch-1
...
Typo - Update lib/generators/templates/devise.rb
2013-02-06 17:08:36 -08:00
Stefan Boesen
3458e12274
Update lib/generators/templates/devise.rb
...
Typo in template comment.
2013-02-06 16:30:00 -08:00
José Valim
d9364f7a4a
Update CHANGELOG.rdoc
...
Close #2254
2013-02-01 09:30:43 -07:00
José Valim
fd0db0b188
Merge pull request #2251 from latortuga/2190-test-case
...
Add test for Issue #2190
2013-02-01 07:58:00 -08:00
Drew Ulmer
c9c1e13743
Add test for Issue #2190
...
Seems to be passing for me.
2013-01-31 10:05:53 -06:00
José Valim
25296d8c6f
Add tests for sign out with redirect, related to #2249
2013-01-30 08:28:51 -07:00
José Valim
34c7981f69
Merge pull request #2248 from bvsatyaram/patch-1
...
Update README.md
2013-01-30 07:11:43 -08:00
B V Satyaram
f7a658e13d
Update README.md
...
Devise is composed of 11 modules instead of 12.
2013-01-30 15:17:36 +05:30
José Valim
1d639bd0c5
Merge pull request #2247 from waldyr/patch-1
...
correcting tiny typo
2013-01-29 17:01:04 -08:00
Waldyr Guimarães Araújo de Souza
5ee07390b7
correcting tiny typo
2013-01-29 22:45:23 -02:00
Carlos Antonio da Silva
83ad67bd51
Fix inheriting mailer templates from Devise::Mailer
...
Previously inheriting from Devise::Mailer would not render default views
from devise when the inheriting mailer didn't have the view. Now it'll
correctly pick the default one from Devise::Mailer.
2013-01-29 00:08:26 -02:00
Carlos Antonio da Silva
72be1f1289
Match against string value, no need to create regexps
2013-01-28 23:59:15 -02:00
Carlos Antonio da Silva
0285565322
Actually fix this test by forcing to_s on the id
2013-01-28 21:40:11 -02:00
Carlos Antonio da Silva
acc3adb2c1
Use #next instead of calculating id + 1
...
The id attribute is not Integer in Mongo, so it fails with something like:
NoMethodError: undefined method `+' for "5106fc06ee6da1ee44000002":Moped::BSON::ObjectId'`
With #next, it will work with both Integer and String ids, for both AR
and Mongo, returning a different id to test for filtered conditions.
2013-01-28 20:46:21 -02:00
Carlos Antonio da Silva
af37800c1d
Change match routes to get / post
...
match without a verb is deprecated in Rails master.
2013-01-28 20:23:13 -02:00
Carlos Antonio da Silva
86eecc6606
Change "ActionController::IntegrationTest" to "ActionDispatch::IntegrationTest"
2013-01-28 19:58:21 -02:00
Rafael Mendonça França
349aab72f0
No need to test against ree since we are testing with 1.8.7
2013-01-28 13:50:08 -02:00
Rafael Mendonça França
bfa65dde70
Use the Ruby 1.8 hash syntax.
...
Yes we still support Ruby 1.8 😢
2013-01-28 13:21:44 -02:00
José Valim
d099d8f0ac
Release v2.2.3
2013-01-26 11:43:17 -07:00
José Valim
5190f52857
Require string conversion for all values
2013-01-26 11:42:42 -07:00
José Valim
5790107f49
Merge pull request #2235 from camelmasa/sorted_locale_file
...
sorted locale file
2013-01-22 19:11:38 -08:00
camelmasa
6fd21ae37e
sorted locale file
2013-01-23 10:39:58 +09:00
Vasiliy Ermolovich
b95c321660
update Gemfile.lock
2013-01-21 20:14:59 +03:00
Alexander Zaytsev
01bb721c33
Use mapping.fullpath in omniauth callbacks
2013-01-21 19:51:06 +05:00
Carlos Antonio da Silva
0061f113db
Fix indent [ci skip]
2013-01-20 21:49:45 -02:00
José Valim
1fb3fbbd88
Merge pull request #2230 from nashby/issue-2218
...
add key option to rememberable_options
2013-01-20 12:23:21 -08:00
Vasiliy Ermolovich
d3f8bd6cae
add key option to rememberable_options
...
closes #2218
2013-01-20 23:16:25 +03:00
José Valim
0642e2fc9b
Merge pull request #2223 from jayshepherd/master
...
Allow parent_mailer to be customizable via Devise.parent_mailer ... (#2219 )
2013-01-18 05:35:55 -08:00
Jay Shepherd
cc017b1f0d
Allow parent_mailer to be customizable via Devise.parent_mailer, useful for engines
2013-01-18 02:26:41 -06:00
José Valim
6c2f51e35e
Release 2.2.2
2013-01-15 21:03:15 +01:00
Lucas Mazza
47db984f52
Apply the changes on 0c4615e33 to the simple_form template too.
2013-01-14 18:53:34 -02:00
José Valim
0c4615e337
Properly check if reconfirmable is available
2013-01-13 09:53:26 +01:00
Carlos Antonio da Silva
85e46f0163
Merge pull request #2211 from nashby/fix-build
...
uUe click_button for canceling account in integration specs
2013-01-12 03:16:12 -08:00
Vasiliy Ermolovich
9913fde749
use click_button for canceling account in integration specs
2013-01-12 14:12:05 +03:00
José Valim
1f940f61c6
Merge pull request #2210 from steverob/master
...
Changed link_to to button_to for cancel registration link in edit registration view
2013-01-11 14:25:55 -08:00
Steve Robinson
70e38fe66d
Changed link_to to button_to for delete user
...
It is advisable to use link_to for mostly GET operations. Actions like DESTROY when presented as a link can cause severe vulnerabilities.
Hence using a button is advisable.
2013-01-12 01:53:09 +05:30
José Valim
872ef2b97f
Release 2.2.1 with fixes for 2.2.0 regressions
2013-01-11 19:15:54 +01:00
José Valim
33fb89340a
Revert "update_with_password doesn't change encrypted password when it is invalid"
...
This reverts commit 10235f9d72 .
2013-01-11 19:12:53 +01:00
José Valim
bd9bf326c0
Merge pull request #2206 from tigris/mailer_subject_rename
...
Rename Devise::Mailer.translate() to something more inline with what it does
2013-01-10 04:19:57 -08:00
Danial Pearce
d48414b0a5
Rename Devise::Mailer.translate() to something more inline with what it does.
2013-01-10 15:26:06 +11:00
José Valim
b6a7d11e5a
Merge pull request #2205 from latortuga/2204-regression-with-db-authenticatable
...
2204 regression with db authenticatable
2013-01-09 09:52:14 -08:00
Drew Ulmer
75ce916be9
Call respond_to?(attr) before applying strip or downcase
...
This avoids calling strip and downcase on globally configured keys that may
not exist on all devise models. Fixes #2204 , a regression introduced by
PR #2135 . Also included a note about the intentional use of respond_to.
2013-01-09 11:42:54 -06:00
Drew Ulmer
c768366240
Add failing tests for Issue #2204
...
For a point release upgrade, Devise should not throw an exception when trying
to downcase or strip globally configured keys. This would be a breaking
change in functionality and this test demonstrates the issue.
2013-01-09 11:41:20 -06:00
Lucas Mazza
ca7d479e90
Install mongoid only on 1.9
2013-01-09 11:51:15 -02:00
Rafael Mendonça França
5bfbc264b7
Invalid YAML 💣
2013-01-09 10:14:01 -02:00
Rafael Mendonça França
9f8d3db2b4
Notify on campfire
2013-01-09 10:11:24 -02:00
Lucas Mazza
4b0d161f95
Update Gemfile.locks to latest patch releases of Rails and fix mocha to 0.10.0.t
2013-01-09 10:01:25 -02:00
José Valim
b2b8b5bf9a
Release v2.2.0
2013-01-08 21:30:43 +01:00
Carlos Antonio da Silva
beda0fe9bd
Update copyright [ci skip]
...
Or as @rafaelfranca says: Happy New Year 🎆
2013-01-08 09:22:26 -02:00
José Valim
8fa3951bea
Update app/controllers/devise/sessions_controller.rb
2013-01-06 11:07:51 +01:00
José Valim
9724e386c3
Merge pull request #2201 from al/bugfix-non_navigational_session_destroy
...
Fix bug with non-navigational requests being treated as navigational ones in XHR to SessionsController#destroy.
2013-01-06 02:07:16 -08:00
Alan Larkin
f2de7bf84c
Fixed bug in SessionsController#destroy which caused all XHR requests, regardless of `Accept' header, to be treated as 'text/html'.
2013-01-06 03:50:26 +00:00
Alan Larkin
84b8188db9
Added failing integration test for XHR invocation of SessionsController#destroy with */*' in the Accept' header.
2013-01-06 03:49:59 +00:00
José Valim
19b5bcbe0f
Accept mail options in Devise::Mailer and deprecate headers_for
2013-01-04 18:52:49 +01:00
José Valim
7c8f636b98
Merge pull request #2178 from gwagener/master
...
Improved grammar of reset password e-mail
2012-12-13 22:49:30 -08:00
Graham Wagener
5745d97232
Improved grammar of reset password e-mail.
2012-12-14 15:08:55 +13:00
José Valim
86f0bff332
Apparently Rails 3.1 does not like @headers as ivar
2012-12-13 09:59:36 +01:00
José Valim
30ab6f923d
Release 2.2.0.rc
2012-12-13 09:20:46 +01:00
José Valim
839e8fc8ac
Show if there is an e-mail waiting for confirmation, closes #2060
2012-12-13 09:13:33 +01:00
José Valim
4c83743263
unconfirmed_email now uses the proper e-mail on salutation, related to #2060
2012-12-13 09:02:59 +01:00
José Valim
e1fde192f2
Update CHANGELOG
2012-12-13 08:43:43 +01:00
José Valim
73389ea491
Merge pull request #2174 from rykov/master
...
Adding the Gem Version badge to README
2012-12-11 10:44:32 -08:00
Michael Rykov
eeb6a30752
Add 'Gem Version' badge to README.md
2012-12-11 10:39:47 -08:00
Lucas Mazza
01669c7374
Display the build status just for the master branch [ci skip].
2012-12-10 10:59:50 -02:00
Carlos Antonio da Silva
ac3a25bf2e
Remove nothing raised assertion
...
Let the test raise if that is the case, no need for assert that nothing
was raised.
Hopefully fix the build ✨
2012-12-04 17:49:26 -02:00
Carlos Antonio da Silva
0652117c79
Bundle update
2012-12-04 17:37:32 -02:00
Carlos Antonio da Silva
2261005ed5
Refactor a bit to avoid two model attributes lookup
...
Tidy up tests a bit.
2012-12-04 17:37:12 -02:00
José Valim
e80e0c9a89
Merge pull request #2135 from latortuga/2129-make-validatable-affect-virtual-attributes
...
Make validatable callbacks affect virtual attributes
2012-12-02 01:43:48 -08:00
Drew Ulmer
79e9d6e564
Allow validation callbacks to apply to virtual attributes
2012-12-01 21:06:33 -06:00
Drew Ulmer
0c6f2adf14
Add failing test for #2129
2012-12-01 21:06:11 -06:00
Drew Ulmer
77ec1b08cd
Move test models into their own file so they can be used elsewhere
2012-12-01 21:06:03 -06:00
Carlos Antonio da Silva
2be9fb292e
Merge pull request #2165 from asanghi/master
...
Reverting part of #2164 which was a mistake [ci skip]
2012-12-01 10:58:39 -08:00
Aditya Sanghi
88dba417ef
reverting part of #2164 which was a mistake
2012-12-02 00:24:09 +05:30
José Valim
b98f021d0f
Merge pull request #2164 from asanghi/master
...
Minor grammar updates
2012-11-30 03:25:51 -08:00
Aditya Sanghi
c026b5a3f6
minor documentation grammar update
2012-11-30 16:42:18 +05:30
José Valim
3696cbf33e
Merge pull request #2148 from kukula/master
...
Fix default email_regexp config to not allow spaces
2012-11-21 02:58:30 -08:00
José Valim
cbfdcbeaed
Merge pull request #2147 from gabetax/signin_nonexistent_error
...
Support alternate sign in error message when email record does not exist
2012-11-19 15:56:18 -08:00
Gabe Martin-Dempesy
130d684198
Change failure key for missing database resource to :invalid_email
2012-11-19 15:49:21 -08:00
Anatoliy Kukul
f0f3e15c08
add test for Devise.email_regexp
2012-11-19 17:38:22 +02:00
José Valim
19a1ea5211
Update README.md
2012-11-19 14:02:43 +01:00
José Valim
6c2c808478
Merge pull request #2143 from luisico/display-invalid-confirmation-token-error
...
Invalid confirmation token message not shown with simple_form
2012-11-19 05:02:06 -08:00
Anatoliy Kukul
adc9a45f05
Used other regxp
2012-11-19 13:58:19 +02:00
Anatoliy Kukul
50186474d4
Fix default email_regexp config to not allow spaces
...
Default email_regexp config accepted emails with spaces. e.g.: "test user@test server.com" http://rubular.com/r/jXGS8pmumd
Changed regexp to not allow spaces in email. e.g.: http://rubular.com/r/tTD9PytGEp
2012-11-19 13:40:54 +02:00
Gabe Martin-Dempesy
ffab77c35e
Fix typo on nonexistent error
2012-11-18 15:19:15 -08:00
Gabe Martin-Dempesy
cde2229e59
Support alternate sign in error message when email record does not exist
...
By default, the nonexistent error is still identical to the :invalid
message, and must be customized by the developer to implement.
2012-11-18 15:08:57 -08:00
José Valim
397fce1f9d
Merge pull request #2144 from jm81/master
...
Use correct current_password in RegistrationTest of invalid confirmation
2012-11-15 10:56:49 -08:00
Jared Morgan
f044916f94
Use correct current_password in RegistrationTest of invalid confirmation
...
In DatabaseAuthenticatable#update_with_password, password is now deleted if
the current_password is invalid. dm-validations will not check the
confirmation in that case, so this test was failing in dm-devise.
2012-11-15 12:21:11 -06:00
Luis Gracia
0415564a7d
Show invalid unlock token message
...
Attribute unlock token is not present in the simple_form template,
therefore not being displayed by #error_notification.
This fix explicitily call #full_error on :unlock_token.
2012-11-13 15:01:32 -05:00
Luis Gracia
ed6f2abc23
Show invalid confirmation token message
...
fixes #2143
Attribute confirmation token is not present in the simple_form template,
therefore not being displayed by #error_notification.
This fix explicitily call #full_error on :confirmation_token.
2012-11-12 20:05:42 -05:00
Lucas Mazza
96a0477555
Remove 1.9.2 + Mongoid from the build matrix.
...
http://mongoid.org/en/mongoid/docs/tips.html#ruby
2012-11-12 15:07:29 -02:00
Lucas Mazza
da5464acf6
Update Travis CI configuration:
...
* `DEVISE_ORM=mongoid` is part of the build matrix, except
for 1.8.7 and REE rubies;
* `language` key added (Thanks to travis-lint).
2012-11-12 09:12:17 -02:00
Lucas Mazza
1c8fc18fad
Update Gemfile.rails-3.1.x.
2012-11-12 09:11:55 -02:00
José Valim
fbf667e009
Update CHANGELOG
2012-11-10 21:07:34 +01:00
José Valim
071ba358a9
Update README.md
2012-11-10 20:51:20 +01:00
José Valim
ef4db2e93d
Merge pull request #2138 from nashby/patch-1
...
update README
2012-11-10 11:49:15 -08:00
José Valim
6a2ef52aa0
Merge pull request #2139 from durran/mongoid-3-test-fixes
...
Fix spec failures for Mongoid 3.
2012-11-10 11:49:05 -08:00
Durran Jordan
d821275588
Fix spec failures for Mongoid 3.
...
This has no actual changes to Devise itself, just fixes the failing
tests when running against Mongoid 3 instead of Mongoid 2.
Mocha has been locked at 0.10.0 since 0.12.0 raises an error when trying
to set an expectation on a frozen object.
Tests were updated to work with both AR and Mongoid, some cases the XML
serialization was slightly different but both were outputting correct
and valid XML, and the id/_id field mismatch is now handled.
An active field was missing from the test models for Mongoid, and the
invalid :null => true options in field were removed.
2012-11-10 20:02:58 +01:00
Vasiliy Ermolovich
59966e817c
update README
...
closes #2128
2012-11-10 20:35:43 +03:00
José Valim
b1df686a2e
Merge pull request #2137 from nashby/indifferent
...
remove useless test
2012-11-08 11:25:08 -08:00
Vasiliy Ermolovich
ae426dcc1c
remove useless test
2012-11-08 22:22:03 +03:00
José Valim
1646684af9
Merge pull request #2134 from marcinb/master
...
unlock user after password re-set
2012-11-07 14:15:00 -08:00
Marcin Balinski
ac58c28617
Unlock user when re-setting password and unlock strategy is :email or :both
2012-11-07 10:45:46 +01:00
José Valim
7d72121bd7
Merge pull request #2132 from nashby/issue-2130
...
update_with_password doesn't change encrypted password when it is invalid
2012-11-06 13:13:50 -08:00
Vasiliy Ermolovich
10235f9d72
update_with_password doesn't change encrypted password when it is invalid
...
closes #2130
2012-11-06 21:05:17 +03:00
José Valim
5d311e7557
Merge pull request #2126 from nashby/issue-2122
...
don't delete the return to url from session if the requested format is not navigational
2012-11-04 23:49:42 -08:00
Vasiliy Ermolovich
5d86327e4d
move is_navigational_format? and request_format methods to helpers
2012-11-05 09:54:22 +03:00
Vasiliy Ermolovich
61903b534a
don't delete the return to url from session if the requested format is not navigational
...
closes #2122
2012-11-04 23:42:38 +03:00
José Valim
ee61d86546
Update CONTRIBUTING.md
2012-10-30 20:09:10 +01:00
José Valim
06a2cff140
Merge pull request #2117 from nashby/fix-issue-2043
...
handle namespaced models in AR generator
2012-10-27 15:25:32 -07:00
Vasiliy Ermolovich
2f36d0dd32
handle namespaced models in AR generator
...
closes #2043
2012-10-28 00:59:33 +03:00
José Valim
d5a2a9b2da
Update CHANGELOG
2012-10-26 11:24:56 +02:00
José Valim
8ee1591868
Merge pull request #2115 from latortuga/1994-paranoid-locking
...
Add failing test for Issue #1994
2012-10-26 02:22:49 -07:00
José Valim
18c377e0d7
Merge pull request #2112 from latortuga/patch-1
...
Make #set_flash_message respect i18n-set resource_name
2012-10-26 02:05:42 -07:00
Drew Ulmer
00a01c2bc4
Fix #1994 Lockable no longer leaks account existence
2012-10-25 16:51:56 -05:00
Drew Ulmer
00e8841e93
Unit test for Lockable#unauthenticated_message not leaking account existence
...
This is another failing test for #1994 , a unit test for Lockable. Lockable's
#uanauthenticated_message should not return :locked if paranoid mode is on
and instead should return the generic :invalid response.
2012-10-25 16:51:02 -05:00
Drew Ulmer
f79bb31ee6
Add failing test for Issue #1994
...
Lockable should not leak information about account existence if paranoid
mode is on.
2012-10-25 16:20:21 -05:00
Drew Ulmer
d6449d014e
Add test for #devise_i18n_options allowing resource_name override
2012-10-24 12:13:07 -05:00
Drew Ulmer
b853871667
Make #set_flash_message respect i18n-set resource_name
...
Using #devise_i18n_options allows overriding any i18n keys but the
resulting call to I18n.t does not respect an override of resource_name.
2012-10-24 11:50:26 -05:00
José Valim
f796439cf2
Merge pull request #2111 from rubynortheast/signup_hook
...
Separates sign_up and sign_in on Registration
2012-10-23 12:53:52 -07:00
Philip Poots
692175b897
Moves sign_up from helpers to controller
2012-10-23 20:29:41 +01:00
Philip Poots
68dc20cba2
Separates sign_up and sign_in on Registration
...
See #2104
Completed with the help of @rubynortheast
2012-10-23 20:05:45 +01:00
José Valim
90dbae4c7a
Merge pull request #2096 from adammcnamara/bugfix/assign-self-dot-resource
...
Assigns object to self.resource, changing variable scope.
2012-10-10 07:10:22 -07:00
Adam McNamara
564e588f5e
Assigns object to self.resource, changing variable scope.
2012-10-10 10:01:35 -04:00
José Valim
8f4b06542e
Merge pull request #2088 from dyba/contributing-fix
...
Missing https:// in Google Group link
2012-10-04 08:44:20 -07:00
Daniel Dyba
7513512000
Missing https:// in Google Group link
2012-10-04 08:38:16 -07:00
José Valim
7b04ecdddb
Update CONTRIBUTING.md
2012-10-04 08:20:50 -07:00
José Valim
50338b34f9
Merge pull request #2074 from diminish7/failure_app_test_helper
...
Test helper was incorrectly returning failure body
2012-09-28 07:45:49 -07:00
José Valim
75268bed5c
Merge pull request #2077 from floehopper/use-number-of-for-countable-noun
...
Use "number of" instead of "amount of" for countable nouns.
2012-09-28 07:45:03 -07:00
James Mead
e873e2aeed
Use "number of" instead of "amount of" for countable nouns.
2012-09-28 10:52:37 +01:00
Jason Rush
b27491061e
Test helper was incorrectly returning failure body
...
The _process_unauthenticated method in test_helper was returning
the response as the body. When setting rendering the text, it was
calling to_s on the response which would render something like
this: #<ActionDispatch::Response:0x007fb9e1efea00>. This change
renders the body of the response instead of the response itself
2012-09-27 18:44:31 -06:00
José Valim
9e096a4113
Update README.md
2012-09-18 14:30:04 +03:00
José Valim
8c7bf7dd15
Merge pull request #2042 from igor04/master
...
Deleted unnecessary validation in generator mongoid model
2012-09-13 05:10:18 -07:00
José Valim
f7dd59839c
Update lib/generators/templates/README
2012-09-06 17:26:20 +03:00
José Valim
84c4759f58
Merge pull request #2045 from mtoledo/patch-1
...
Minor typo fix
2012-08-28 04:17:53 -07:00
Marcos Toledo
e345d3940c
Minor typo fix
2012-08-27 23:41:47 -03:00
igor04
d59301ed2a
Deleted unnecessary validation in generator mongoid model
2012-08-26 14:54:08 +03:00
José Valim
48751783a7
Merge pull request #2040 from RudyOnRails/master
...
Corrected routes.rb comment for destroy_user_session HTTP method. From GET to DELETE.
2012-08-23 09:24:39 -07:00
Kevin Musiorski
691172d01f
Changed HTTP method for route destroy_user_session from GET to DELETE. Cleaned up indentations to keep tidy.
2012-08-23 10:26:45 -05:00
José Valim
eb51d0365f
Merge pull request #2037 from Radagaisus/master
...
HTML5 Autofocus, to make things nicer
2012-08-22 05:38:38 -07:00
Radagaisus
422bf89182
autofocus for simple_form_for
2012-08-22 15:28:25 +03:00
Radagaisus
4962fbcb51
no need for {} they said
2012-08-22 02:15:48 +03:00
Radagaisus
be2b481385
fixed for 1.8.7 syntax
2012-08-22 02:13:38 +03:00
Radagaisus
d169ef3641
extra whitespace
2012-08-22 02:01:01 +03:00
Radagaisus
2a64972321
html5 autofocus for a better ux from the get go
2012-08-22 01:58:26 +03:00
Rafael Mendonça França
33fac7f765
Merge pull request #2027 from nashby/patch-1
...
Update lib/devise/rails/routes.rb comments
2012-08-17 07:09:49 -07:00
Vasiliy Ermolovich
5c2e3e1a12
Update lib/devise/rails/routes.rb
2012-08-17 17:05:47 +03:00
José Valim
4a24667e80
Revert "Rails 3.2.7 deprecates update_attribute in favor of update_column"
...
Rails 3.2.8 is rolling back the deprecations.
This reverts commit 7d41072c0e .
2012-08-05 09:24:10 -03:00
José Valim
c3d9dc3007
Merge pull request #2007 from willrax/patch-1
...
fixed typo in readme.md
2012-08-05 04:48:35 -07:00
willrax
df0a9401b1
fixed typo in readme.md
2012-08-05 19:27:11 +10:00
Carlos Antonio da Silva
f7f086faae
Fix README [ci skip]
2012-07-31 23:32:10 -03:00
Rafael Mendonça França
6ae64b1723
Merge pull request #1998 from fabiokr/update_attribute
...
Replaces update_attribute with update_column
2012-07-27 13:31:20 -07:00
Fabio Kreusch
7d41072c0e
Rails 3.2.7 deprecates update_attribute in favor of update_column. Updated projects using Devise output lots of warnings because Devise uses the deprecated version in some places. This commit replaces update_attribute with update_column to fix that.
2012-07-27 17:25:21 -03:00
José Valim
2f75b12add
Merge pull request #1993 from ahmeij/master
...
Add message about :timedout flash to the Readme (resolved #1777 )
2012-07-25 07:25:37 -07:00
Andre Meij
352dd1f2fc
Update README.md include :timedout notice
...
Resolves #1777
2012-07-25 16:47:40 +03:00
José Valim
bdf0bc7b1e
Revert "Revert "New password default minimum length is now 8""
...
This reverts commit b1f490a2f8 .
Actually, the implementation was good!
2012-07-24 23:41:17 +02:00
José Valim
b1f490a2f8
Revert "New password default minimum length is now 8"
...
This reverts commit 2950434ed3 .
It is backwards incompatible, we need a better migration plan.
2012-07-24 22:41:13 +02:00
Víctor Manuel Cruz Dueñas
73f617db7b
Checking if unconfirmed_email has changed before to set update_needs_confirmation flash message.
...
Conflicts:
test/integration/registerable_test.rb
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2012-07-23 16:20:51 +02:00
José Valim
1da8490dbc
Add a note about APIs in token authenticatable, closes #1959
2012-07-23 16:12:38 +02:00
José Valim
6e79c5c242
Ensure a new token is generated if the previous one expired
2012-07-23 16:05:51 +02:00
José Valim
f4db03d31c
Do not add ActionView::Helpers::DateHelper to all models
2012-07-23 15:59:17 +02:00
Rodrigo Flores
8bc1096099
Minor correction on changelog
2012-07-23 10:39:39 -03:00
Rodrigo Flores
a23247d431
Changelog
2012-07-22 17:17:50 -03:00
Rodrigo Flores
6a37945025
Merge pull request #1975 from promisedlandt/email-token-expiration
...
Email token expiration
2012-07-22 13:10:27 -07:00
Nils Landt
dcada8fe75
Refactor according to line notes from josevalim
...
- rename reset_password_within to confirm_within
- confirmation_period_valid? is back and memoized
- fix hash syntax to hashrocket
2012-07-22 14:02:27 +02:00
Nils Landt
f80cecc864
Remove unnecessary include
2012-07-16 11:50:46 +02:00
Nils Landt
1d6ee13aae
Refactor according to rodrigoflores
...
- Favor using update_attribute instead of constructor parameters in user
factory for tests
- Test for accurate error message when confirmation token is expired
- Don't check twice whether the confirmation period is expired
2012-07-16 11:20:01 +02:00
José Valim
01d3ed7172
Merge pull request #1976 from benknowles/master
...
Patch for Trackable IP
2012-07-12 12:15:36 -07:00
Ben Knowles
a1411c885f
Trackable should use the remote IP address, not the gateway's
2012-07-12 13:34:31 -05:00
Nils Landt
6e48fcee76
Fix tests for email token expiration
...
The tests work now, but are a bit wonky because User.create does things
I don't understand.
2012-07-11 18:30:36 +02:00
Nils Landt
42a0c30139
Refactored according to line notes by rodrigoflores
2012-07-11 15:49:41 +02:00
Nils Landt
87f2fa9767
Add options to expire confirmation tokens
...
With this patch, functionality is added to expire the confirmation
tokens that are being sent by email.
For example, if a token is valid for 3 days only, it cannot be used for
confirmation on the 4th day.
2012-07-09 14:43:12 +02:00
José Valim
8463c6dce4
Merge pull request #1963 from shime/master
...
update CONTRIBUTING.md
2012-07-07 11:38:41 -07:00
Hrvoje Šimić
9b77ac0cab
update CONTRIBUTING.md
2012-07-07 19:57:59 +02:00
Rodrigo Flores
0afae74386
Update CONTRIBUTING.md
2012-07-06 16:52:53 -03:00
José Valim
56c1ab0824
Update CONTRIBUTING.md
2012-07-06 20:39:39 +02:00
José Valim
1ec23994f2
Try CONTRIBUTING.md
2012-07-06 20:23:58 +02:00
Rodrigo Flores
2950434ed3
New password default minimum length is now 8
2012-07-06 13:41:28 -03:00
Rodrigo Flores
1aca139c65
Changelog update
2012-07-06 12:03:25 -03:00
Rodrigo Flores
fa451306fc
Merge pull request #1961 from carlosgaldino/change-min-password-length
...
Change the minimum password length to 8
2012-07-06 08:01:41 -07:00
Carlos Galdino
c179cef365
Change the minimum password length to 8
2012-07-06 11:46:46 -03:00
Víctor Manuel Cruz Dueñas
3511f8ac00
Checking if unconfirmed_email has changed before to set update_needs_confirmation flash message.
2012-07-05 19:10:34 +02:00
José Valim
1579ec9a87
Update CHANGELOG
2012-06-28 12:13:42 +02:00
José Valim
cbc6926e3d
Fix issue #1928 , thanks to @ejfinneran for a test case
2012-06-28 12:05:20 +02:00
José Valim
9678b422ff
Merge pull request #1954 from mrchrisadams/d1bf31729d10fbb65f1b7ce158f3926aa946b3ad
...
Allow setting of default reply_to fields on mailer mails - #1936
2012-06-27 03:19:52 -07:00
Chris Adams
d1bf31729d
Address issue #1936
...
Update mailer to accept reply_to as a default param as well, as discussed in
https://github.com/plataformatec/devise/issues/1936#issuecomment-6583637
2012-06-26 23:11:35 +01:00
José Valim
a89a2052b8
Depend on latest warden
2012-06-26 21:16:00 +03:00
José Valim
6c80839e7b
Merge pull request #1953 from ka8725/master
...
Use request_format method instead of direct code
2012-06-26 11:12:18 -07:00
Andrey Koleshko
972ac3b5f0
refactor is_navigational_format? method
2012-06-26 17:58:50 +03:00
Rodrigo Flores
caa8961938
Merge pull request #1949 from dblock/reconfirmation_token_reset
...
Test that confirms that #1948 is not an issue.
2012-06-25 15:37:05 -07:00
dblock
619826fbc8
Test that confirms that #1948 is not an issue.
2012-06-25 18:33:48 -04:00
José Valim
fe62d1bf6a
Merge pull request #1943 from mathieul/patch-1
...
Allow to destroy a session using JSON format
2012-06-24 07:25:25 -07:00
mathieul
95f20587ef
test that destroying a session doesn't set the flash if the requested format is not navigational
2012-06-23 14:43:35 -07:00
Mathieu Lajugie
8171ad39e0
Allow to destroy a session using JSON format (or any non navigational format) when Rails flash feature is not enabled (i.e.: when using rails-api).
2012-06-23 10:49:33 -07:00
Carlos Antonio da Silva
0c9b79947d
Fix locked_at column in lockable required fields logic
...
See a7658f9d75 (commitcomment-1493199)
Thanks @nickhoffman
2012-06-22 22:31:57 -03:00
Carlos Antonio da Silva
4c9680787d
Merge pull request #1941 from saizai/patch-1
...
Camelize correctly - e.g. omniauth-paypal sets this via OmniAuth.config.add_camelization
2012-06-22 18:21:14 -07:00
Sai
6eeb9e4b7d
Update patch-1
2012-06-22 14:03:56 -03:00
Sai
80b2240ef0
Camelize correctly - e.g. omniauth-paypal sets this via OmniAuth.config.add_camelization
2012-06-22 10:55:23 -03:00
José Valim
2f142724c5
Update master
2012-06-19 19:33:30 +03:00
José Valim
174c2903d7
Release 2.1.2
2012-06-19 11:27:30 +02:00
José Valim
1f4c8e39f8
Revert "Thor fixes were sent upstream"
...
Actually, we need to wait for a new rails release, le sigh.
This reverts commit 3caab6d2ea .
2012-06-18 15:18:33 +02:00
José Valim
3caab6d2ea
Thor fixes were sent upstream
2012-06-18 15:06:06 +02:00
José Valim
4e5a9bd600
Workaround thor bug /cc @wycats
2012-06-18 13:44:43 +02:00
José Valim
fef34d360b
Merge pull request #1924 from calmyournerves/patch-1
...
fixed typo "Depreation" -> "Deprecation"
2012-06-16 11:00:38 -07:00
calmyournerves
05ddd9c204
fixed typo "Depreation" -> "Deprecation"
2012-06-16 20:51:56 +03:00
José Valim
ba2e44c6a4
Release 2.1.1
2012-06-16 15:57:17 +02:00
José Valim
4f07ed42e3
Lock warden on sign out
2012-06-16 15:21:48 +02:00
José Valim
66716023e4
Disable storage on CSRF
2012-06-16 14:51:37 +02:00
José Valim
4bc2ff997a
Timeout does not explode when reset_authentication_token! is accidentally defined by Active Model
2012-06-16 14:04:34 +02:00
José Valim
b1633f2454
Delegate omniauth_authorize_path to the router, closes #1843
2012-06-16 13:43:11 +02:00
José Valim
41a91188f5
Do not trigger timeout on sign in related actions
2012-06-16 13:24:07 +02:00
José Valim
4def600076
Mark some methods as private
2012-06-16 13:06:52 +02:00
José Valim
18a18e4c72
Provide a send_devise_notification hook
2012-06-16 13:00:51 +02:00
José Valim
85c90671bc
Update CHANGELOG
2012-06-16 12:38:02 +02:00
José Valim
16b688eced
Merge pull request #1922 from excid3/master
...
Flexible routing scopes
2012-06-15 11:21:21 -07:00
Chris Oliver
37c55eb192
Added tests for flexible routing constraints
2012-06-15 13:06:29 -05:00
Chris Oliver
2d7dc3e82d
Merge branch 'master' of git://github.com/plataformatec/devise
2012-06-15 11:05:58 -05:00
Chris Oliver
e7a8a7247c
Switch and, or to &&, ||
2012-06-15 08:45:44 -05:00
José Valim
c4818a9fb2
Reorganize tests slightly
2012-06-15 11:15:03 +02:00
Chris Oliver
8c2a7146df
Add scope into warden user access
2012-06-15 02:10:42 -05:00
Chris Oliver
311e3206c9
Added block to authenticate route as well
2012-06-15 00:12:09 -05:00
Chris Oliver
6ad6b3d2a6
Allow passing a block to the authenticated route
2012-06-14 23:54:12 -05:00
Carlos Galdino
471a05fd59
Merge pull request #1921 from nashby/data-confirm
...
use data-confirm option as :confirm was deprecated in rails 3.2.6
2012-06-14 12:50:02 -07:00
Vasiliy Ermolovich
7a12655111
use data-confirm option as :confirm was deprecated in rails 3.2.6
...
SimpleForm templates
2012-06-14 22:48:37 +03:00
Rafael Mendonça França
1b26869b74
Merge pull request #1920 from nashby/data-confirm
...
use data-confirm option as :confirm was deprecated in rails 3.2.6
2012-06-14 12:35:30 -07:00
Vasiliy Ermolovich
13f35d80a9
use data-confirm option as :confirm was deprecated in rails 3.2.6
2012-06-14 22:27:40 +03:00
José Valim
1c4faa7d8a
Depend on latest orm adapter
2012-06-13 15:07:24 +02:00
José Valim
c26ed53927
Merge pull request #1908 from mhfs/lockable_async_fix
...
Persist unlock token before triggering mailer
2012-06-11 14:09:24 -07:00
Marcelo Silveira
fe0f6e96b3
Persist unlock token before triggering mailer
2012-06-11 17:52:10 -03:00
José Valim
6dd7ccee68
Add more docs, remove 3.0 related code, update CHANGELOG
2012-06-08 19:22:14 +02:00
José Valim
9327cf8af5
Merge pull request #1903 from zamith/master
...
Routes for engines
2012-06-08 10:05:56 -07:00
Zamith
512b52e23a
Adding option to change omniauth path prefix
2012-06-08 17:50:33 +01:00
José Valim
5df7105301
Merge pull request #1902 from gbataille/master
...
Redirect to sign_in page when trying to access password#edit without a reset password token
2012-06-08 01:19:05 -07:00
Gregory Bataille
a84fdb771f
Merge branches 'master' and 'no_token'
2012-06-08 10:08:50 +02:00
Gregory Bataille
ff75341c75
Redirect to sign in page when trying to access password#edit without a
...
reset_password_token (i.e. not coming from a reset password email)
2012-06-08 10:08:35 +02:00
Carlos Antonio da Silva
f0d48a96ca
Fix rdoc rake task [ci skip]
2012-06-07 22:48:15 -03:00
José Valim
215fdf119e
Better error message when mapping can't be found
2012-06-07 14:34:13 +03:00
José Valim
985b646ee1
Update README.md, closes #1895
2012-06-07 14:31:43 +03:00
José Valim
622e480c4b
Merge pull request #1892 from clody69/master
...
Fixed User model generation for Mongoid
2012-06-07 01:09:54 -07:00
José Valim
2e78a46c52
Merge pull request #1896 from Antiarchitect/patch-1
...
In addition to #1722 . expire_auth_token_on_timeout added to Timeoutable configuration block.
2012-06-07 01:09:05 -07:00
Andrey Voronkov
b1b6e53d6f
In addition to #1722 . expire_auth_token_on_timeout added to Timeoutable configuration block.
2012-06-07 09:32:44 +04:00
José Valim
65325f7f81
Merge pull request #1894 from wtn/master
...
#update_with_password should use mass assignment options when password is not valid
2012-06-05 01:15:51 -07:00
William T Nelson
9bd82e5a24
use mass assignment options when password is not valid
2012-06-04 22:52:09 -05:00
Claudio Riva
0689b4558e
Update master
2012-06-03 22:24:31 +03:00
Rafael Mendonça França
dbea934701
Update README.md [ci skip]
2012-05-29 17:28:57 -03:00
Rafael Mendonça França
8e4d5fb38f
Merge pull request #1882 from GeekOnCoffee/patch-1
...
URLs that aren't links aren't nice
2012-05-29 13:26:56 -07:00
Andrew Hooker
e324ee9823
URLs that aren't links aren't nice
2012-05-29 15:24:34 -05:00
José Valim
54e9cabf5d
Update README.md
2012-05-29 16:46:58 +03:00
José Valim
7a3f6fb53d
Merge pull request #1880 from brynary/codeclimate-badge
...
Add Code Climate badge to README
2012-05-29 05:54:49 -07:00
Bryan Helmkamp
59a9576498
Add Code Climate badge to README
2012-05-29 08:46:48 -04:00
José Valim
57eb3886ba
Refactor router.rb a bit based on Code Climate feedback: https://codeclimate.com/github/plataformatec/devise/Devise
2012-05-29 11:29:09 +02:00
Rafael Mendonça França
fe9e6db0e2
Merge pull request #1876 from shaliko/master
...
Remove not used variables
2012-05-26 09:36:30 -07:00
Shaliko Usubov
db8eeb6c6e
Remove not used variables
2012-05-26 20:31:42 +04:00
José Valim
2b7328535d
Check for the request before checking for the mapping, closes #1859
2012-05-25 09:39:50 +02:00
José Valim
d4e5424360
Simplify validation logic inside strategies
2012-05-22 14:10:06 +02:00
José Valim
d67d992749
Merge pull request #1865 from nirvdrum/patch-1
...
Simple compose VS comprise grammar fix.
2012-05-21 03:33:57 -07:00
Kevin Menard
b6c7aafe55
Simple compose VS comprise grammar fix.
2012-05-20 23:04:53 -03:00
José Valim
9829384829
Merge pull request #1864 from nashby/update-views
...
use implicit partials rendering and update simple_form templates
2012-05-20 12:17:19 -07:00
Vasiliy Ermolovich
1d79c1982a
use implicit partials rendering
...
make simple_form templates consistent with templates
that generates by simple_form itself
612c0067cf
2012-05-20 22:01:11 +03:00
José Valim
f6259531c3
Update CHANGELOG.rdoc
2012-05-17 13:25:07 +03:00
José Valim
ed03039d19
Merge pull request #1857 from pomnikita/master
...
Remove devise/schema from autoloads
2012-05-17 02:27:30 -07:00
Nikita Pomyashchiy
b6abc4623b
Remove autoload of deprecated devise/schema
2012-05-17 13:13:19 +04:00
Carlos Antonio da Silva
d1949b7b42
Fix indent, remove not used variable
2012-05-15 17:22:52 -03:00
Carlos Antonio da Silva
b6e30427a3
Pass the block argument straight to the assertion methods in test helpers
2012-05-15 17:19:21 -03:00
Carlos Antonio da Silva
96e0dcf5d5
Remove not used variable, fix indent
2012-05-15 17:14:05 -03:00
Carlos Antonio da Silva
ab48435211
Remove warning with shadowing variable
2012-05-15 15:27:46 -03:00
Carlos Antonio da Silva
8bcb05d6c0
Cache constant on check fields
2012-05-15 15:20:01 -03:00
Carlos Antonio da Silva
6b363d6af9
Build only one model instance for checking fields
2012-05-15 15:12:18 -03:00
Carlos Antonio da Silva
2fd2a8662d
Define the accessor right away instead of open + send
2012-05-15 15:05:21 -03:00
Rodrigo Flores
f1db0809b1
Bumping to 2.1.0
2012-05-15 14:14:41 -03:00
Rodrigo Flores
30ca072f50
Fixing README to reflect 2.1.0 release
2012-05-15 14:14:40 -03:00
José Valim
85ea53198a
Merge pull request #1853 from adzap/master
...
Add resource_params controller method as helper to allow overriding params used to build resource
2012-05-15 01:21:18 -07:00
Adam Meehan
7ec4c1424d
Add resource_params internal helper to param filtering
...
In light of recent discussions around mass assignment security and
the alternate solution of using the controller to filter params, not the model,
a hook/helper is needed to be able to override how the params are filtered
before they are used to build the resource.
2012-05-15 18:07:02 +10:00
Rodrigo Flores
f95513e86b
Merge branch 'asanghi-fixes'
2012-05-14 17:53:52 -03:00
Rodrigo Flores
8baacecdcf
Fixing tests
2012-05-14 17:53:34 -03:00
Aditya Sanghi
ff6e30cec4
Minor updates suggested to default language in locales. Be consistent with "email" and "e-mail"; email address exists "in" our database not "on" our database.
2012-05-14 17:44:51 -03:00
Rodrigo Flores
308275c8a8
Fixing a phrase on README
2012-05-14 10:37:30 -03:00
Rodrigo Flores
5ed6534aa3
Adding a line break on resource generator after attr_accessible
...
Fixes issue #1851
2012-05-14 10:26:30 -03:00
Rodrigo Flores
120ca0e3a5
Merge branch 'fork-readme-rdoc-links'
2012-05-10 10:40:38 -03:00
Hosam Aly
d193802613
Added links to module RDocs, except for Encryptable which I couldn't find.
2012-05-10 10:40:27 -03:00
Rodrigo Flores
50b4d2eb6b
Removing mentioning encryptable on README
2012-05-10 10:29:34 -03:00
Rodrigo Flores
36db032ca0
Updated Gemfile.lock
2012-05-09 19:54:09 -03:00
Rodrigo Flores
afbcc31c6a
Bumping version to 2.1.0.rc2
2012-05-09 19:53:38 -03:00
Rodrigo Flores
52c35b18da
Updating README
2012-05-09 19:52:56 -03:00
José Valim
454a5ad1ec
Try to fix the build for rails 3.1
2012-05-09 23:41:05 +02:00
Rodrigo Flores
1698f0f57c
Merge branch 'removing_encryptable'
2012-05-09 18:05:14 -03:00
Rodrigo Flores
bb6d7334d0
Fixing gem name
2012-05-09 18:04:40 -03:00
Rodrigo Flores
659ec4d6ea
Using bundler's awesome way to release the gem!
2012-05-09 14:59:42 -03:00
Rodrigo Flores
2e50204700
Changelog
2012-05-09 14:52:47 -03:00
Rodrigo Flores
39dc9a7ba6
Removed encryptable references on rails_app
2012-05-09 14:49:55 -03:00
José Valim
65ef2592f6
Add a test case to previous commit
2012-05-09 18:27:44 +02:00
José Valim
ad0aed3ba5
Alternative solution to failure app's script name handling (tests upcoming)
2012-05-09 18:03:23 +02:00
Rodrigo Flores
0d868b9ec1
Removed ENCRYPTORS_LENGTH
2012-05-09 08:42:37 -03:00
Rodrigo Flores
5f440dfe13
Removing encryptors and its autoloads
2012-05-07 16:50:35 -03:00
Rodrigo Flores
768f8832b9
Removing encryptable module
2012-05-07 16:37:16 -03:00
José Valim
32f20dddd6
Get rid of deprecated code
2012-05-06 13:13:53 +02:00
José Valim
7aa93a3ecb
Update CHANGELOG
2012-05-06 12:53:27 +02:00
José Valim
b07dd76453
Remove faux bcrypt encryptor from Devise (it was never released and it wont be until we solve the encryptable issue
2012-05-06 12:49:53 +02:00
José Valim
4600b4ab22
Speed up bcrypt handling
2012-05-06 12:29:03 +02:00
José Valim
a8d2dce563
Merge branch 'test_helpers'
2012-05-06 12:19:36 +02:00
José Valim
5e845ee265
Do not reproduce warden behavior, simply rely on the controller calling it
2012-05-06 12:09:53 +02:00
Matt Connolly
a9b7a4a1de
Reinstating tests for the controller test's response object. This does need to be set so the strategy's custom response can be tested.
2012-05-06 19:24:57 +10:00
Matt Connolly
32d2f78239
Updating process unauthenticated to set the response so it can be tested.
2012-05-06 18:41:43 +10:00
Matt Connolly
2a3a8b8008
Changing test to not bother with saved response, since it wasn't set by the test.
2012-05-06 17:08:00 +10:00
Matt Connolly
90a63d4d89
Completing test and functionality for TestHelper to correctly return a custom response from a warden strategy.
2012-05-06 16:48:39 +10:00
Matt Connolly
66f74ed579
Adding a test for a warden strategy retuning a custom response.
2012-05-06 13:35:24 +10:00
José Valim
d376d11d42
Merge pull request #1825 from julianvargasalvarez/master
...
Use 'head :no_content' in sessions_controller#destroy
2012-05-03 00:27:21 -07:00
Julian Vargas
6664acd27f
Use 'head :no_content' in sessions_controller#destroy
...
Code cleanup for returning headers instead of an empty string
when destroying sessions.
Lines 464 and 471 on test/integration/autenticatable_test.rb
were adjusted to assert on :no_content
2012-05-02 22:40:53 -05:00
Rodrigo Flores
525bcd4e2d
Refactoring simulation inside engine to decide based on the api
2012-05-02 14:53:14 -03:00
Rodrigo Flores
34a64070ca
Cached the class_path and changed a variable name (kudos to @britto!)
2012-05-02 14:52:55 -03:00
José Valim
67f2074c81
Merge pull request #1805 from rosenfeld/deserialization-handling
...
Better handling of previously enabled Devise model deserialization
2012-05-02 10:34:28 -07:00
José Valim
e6717e3d68
Merge pull request #1823 from plataformatec/bugfix-engine-generator
...
Fixes generator on engine
2012-05-02 10:33:54 -07:00
Rodrigo Flores
271eac7381
Testes passing on 3.1 \o/
2012-05-02 14:15:42 -03:00
Rodrigo Flores
4bf4036bf7
Upgrading Rails 3.1 to 3.1.4
2012-05-02 14:15:42 -03:00
Rodrigo Flores
22c210c8b9
Changelog
2012-05-02 14:15:42 -03:00
Rodrigo Flores
afc3888391
Generators on engine fix
2012-05-02 14:15:42 -03:00
Rodrigo Rosenfeld Rosas
411b565cca
Better handling of previously enabled Devise model deserialization
2012-05-02 13:03:34 -03:00
Carlos Antonio da Silva
f6c06ac786
Use sqlite3 gem for 3.1 Gemfile
2012-04-27 18:42:03 -03:00
Rodrigo Flores
852a6ff175
Merge pull request #1813 from Agis-/patch-1
...
Break the line so it doesn't exceed 80-chars limit
2012-04-27 07:55:58 -07:00
Agis Anastasopoulos
d6f4d936ee
Apply the 80 chars per-line rule
2012-04-27 17:51:07 +03:00
Carlos Antonio da Silva
cba1820168
Change Copyright also in license file [ci skip]
...
See d435118 for the readme change.
2012-04-24 08:54:01 -03:00
Carlos Antonio da Silva
0cfc88d2ee
Merge pull request #1804 from rosenfeld/sqlite
...
sqlite3-ruby was renamed to sqlite3
2012-04-22 06:12:35 -07:00
Carlos Antonio da Silva
ec3eed5d2a
Change method name
2012-04-22 10:07:44 -03:00
Carlos Antonio da Silva
49873f4fea
Merge pull request #1796 from mkremer/feature/devise_redirects
...
Added after_sending_reset_unlock_instructions_path_for
2012-04-22 05:44:50 -07:00
Rodrigo Rosenfeld Rosas
ee29bf8d42
sqlite3-ruby was renamed to sqlite3
2012-04-18 15:31:25 -03:00
Mark Kremer
0e0bfe6686
Added after_unlock_path_for to allow override of redirect after account
...
unlock
2012-04-17 13:38:50 +02:00
Mark Kremer
fafea15fa8
Added after_sending_reset_unlock_instructions_path_for which can be overridden in extensions to modify the redirect path
2012-04-17 10:04:06 +02:00
José Valim
3752981cfa
Merge pull request #1794 from aderyabin/master
...
Clean up global namespaces
2012-04-16 09:14:36 -07:00
Andrey Deryabin
9ec1003f1e
removed global namespaces
2012-04-16 21:27:16 +07:00
Rodrigo Flores
64c99bcfd4
Updated changelog to include the removal of render_with_scope
...
Closes #1737
2012-04-09 16:42:30 -03:00
George Guimarães
d4351183d9
Changes link in copyright notice to Plataformatec's site
2012-04-09 09:37:35 -03:00
José Valim
cef5c93bca
Merge pull request #1780 from cmeiklejohn/master
...
Verify AR constant is defined in test suite.
2012-04-08 08:59:39 -07:00
Christopher Meiklejohn
eb4e23274d
Ensure ActiveRecord is defined, which is not true when running Mongoid tests.
2012-04-07 15:54:00 -03:00
José Valim
dacdc72581
Do not accidently mark _prefixes as private.
2012-04-05 09:18:59 -03:00
José Valim
6846014def
Do not make _prefixes private.
2012-04-05 09:15:48 -03:00
Rodrigo Flores
07ef99a8f0
Changelog and a minor change on the test title
2012-04-04 17:27:41 -03:00
Rodrigo Flores
857af600f7
Merge pull request #1722 from Antiarchitect/master
...
Token regeneration on session timeout.
2012-04-04 13:23:27 -07:00
Carlos Antonio da Silva
3cbced4e4e
Merge pull request #1776 from bloudermilk/patch-1
...
Fixes syntax highlighting in the "Getting started" section of the README
2012-04-04 11:09:03 -07:00
Brendan Loudermilk
85e4a0e6ec
Fixes syntax highlighting in the "Getting started" section of the README
2012-04-04 11:03:24 -07:00
Rodrigo Flores
45aca40f6c
Updating the README since we won't have more private messages on Github
2012-04-04 08:12:12 -03:00
Andrey Voronkov
7ecbba089f
Authentication token expiration on session timeout
2012-04-02 20:48:23 +04:00
José Valim
205ddfb7c9
Merge pull request #1761 from rosenfeld/patch-7
...
Fix require for rememberable strategy
2012-03-31 04:21:19 -07:00
Rodrigo Rosenfeld Rosas
8a50b207eb
Fix require for rememberable strategy
2012-03-31 08:17:16 -03:00
José Valim
9f99ccdca3
Merge pull request #1759 from rosenfeld/patch-6
...
Fix typo
2012-03-30 12:38:58 -07:00
Rodrigo Rosenfeld Rosas
f49b605514
Fix typo
2012-03-30 16:37:23 -03:00
José Valim
52b4bab461
Fix failing test.
2012-03-30 09:13:28 +02:00
José Valim
f1ccaf86a4
Remember token is not required.
2012-03-30 09:08:00 +02:00
José Valim
b59ce51760
Wording.
2012-03-30 09:05:52 +02:00
José Valim
60d2c6fddb
Update docs to make find_for_authentication purpose more clear.
2012-03-30 09:00:03 +02:00
José Valim
25a563119b
Revert "Merge pull request #1754 from pivotalhalogen/master"
...
find_for_authentication should be called during only during
an authentication process.
This reverts commit a4c9d5826d , reversing
changes made to f94b71038e .
2012-03-30 08:53:35 +02:00
Rodrigo Flores
a4c9d5826d
Merge pull request #1754 from pivotalhalogen/master
...
Shiny new pull request for #1752
2012-03-29 19:34:55 -07:00
Josh Knox & Ken Mayer
1d3b89458e
Fix Authenticatable, call find_for_authentication
2012-03-29 16:27:41 -07:00
José Valim
f94b71038e
Merge pull request #1749 from rosenfeld/patch-5
...
config.use_salt_as_remember_token is no longer supported
2012-03-28 23:47:42 -07:00
Rodrigo Rosenfeld Rosas
076f4b4db1
config.use_salt_as_remember_token is no longer supported
2012-03-28 19:29:41 -03:00
José Valim
18829a56e4
Merge pull request #1745 from rosenfeld/patch-3
...
Fix minor typo on settings template
2012-03-28 13:05:03 -07:00
Rodrigo Rosenfeld Rosas
ac7b1b3c1f
Fix minor typo on settings template
2012-03-28 16:58:21 -03:00
José Valim
b74f71fbed
Fix build so it works with Rails 3.1.
2012-03-26 18:50:39 +03:00
José Valim
c3c0f4bd89
Update CHANGELOG.rdoc
2012-03-26 18:01:21 +03:00
José Valim
e860ade718
Merge pull request #1730 from Paymium/issue-1729
...
Fix for #1729
2012-03-26 07:59:17 -07:00
José Valim
e9a8c6cb62
Merge pull request #1738 from parndt/patch-1
...
Bumped orm_adapter requirement up to ~> 0.0.7 per ianwhite/orm_adapter#10
2012-03-25 04:41:22 -07:00
Philip Arndt
473a68dbf9
Bumped orm_adapter requirement up to ~> 0.0.7 per ianwhite/orm_adapter#10
2012-03-26 00:16:01 +13:00
David FRANCOIS
885d8836d1
Ability to use attr_protected attributes as sign-in keys without triggering ActiveModel::MassAssignmentSecurity::Error when ActiveRecord::Base.mass_assignment_sanitizer is set to :strict. Fixes #1729 .
2012-03-21 11:48:00 +01:00
José Valim
e92ae37dc3
Merge pull request #1726 from plataformatec/failed_attempts
...
Setting failed_attempts to 0 after sign in
2012-03-19 14:09:23 -07:00
Rodrigo Flores
e6af9763fd
Hook should be on lockable not recoverable and removed an useless comment
2012-03-19 18:06:20 -03:00
Rodrigo Flores
ca73dae1f0
Changelog
2012-03-19 17:15:32 -03:00
Rodrigo Flores
3623215b8c
failed_attempts is set to 0 on sign in
2012-03-19 17:09:22 -03:00
Rodrigo Flores
a1376ac8ea
Indentation + Typo
2012-03-16 22:06:43 -03:00
Rodrigo Flores
9d724cb72a
OMG Forgot to update the Changelog
2012-03-15 11:23:01 -03:00
Rodrigo Flores
91ba14e77e
Bumping to 2.1.0.rc
2012-03-15 11:16:11 -03:00
José Valim
2cab75d72b
Merge pull request #1719 from hakanensari/mounted-app-redirect
...
Fix redirect when authenticating mounted apps
2012-03-15 00:15:02 -07:00
Hakan Ensari
b37a74533d
Fix redirect when authenticating mounted apps
2012-03-15 02:41:29 +00:00
Rodrigo Flores
939d0f25c5
Merge pull request #1716 from plataformatec/validate_symbol
...
Validate is now a boolean function and unautheticated_symbol returns the symbol
2012-03-13 12:07:13 -07:00
Rodrigo Flores
61929d2e2f
Fixing lockable to use the correct method
2012-03-13 15:53:57 -03:00
Rodrigo Flores
a7658f9d75
Checking required fields on lockable
2012-03-13 15:50:13 -03:00
Rodrigo Flores
033e91b7b9
Adding symbols only on validate
2012-03-13 14:24:21 -03:00
José Valim
68de34c03e
Move valid_password? up to database authenticatable.
2012-03-10 11:10:57 +01:00
José Valim
94c05e346d
Merge pull request #1709 from plataformatec/extracting_bcrypt
...
Moved BCrypt logic to a Encryptor
2012-03-09 14:26:20 -08:00
Rodrigo Flores
45298c0a37
Fixing some arguments order
2012-03-09 19:19:20 -03:00
Rodrigo Flores
c12fc1afea
The signature must be the same
2012-03-09 18:37:37 -03:00
Rodrigo Flores
136b5b0be9
Added compare to encryptors
2012-03-09 17:19:36 -03:00
Rodrigo Flores
9203651110
Moved BCrypt logic to a encryptor
2012-03-09 16:38:06 -03:00
José Valim
a394ceaef1
Update CHANGELOG.
2012-03-09 18:12:43 +01:00
José Valim
0ab28ef8ee
Add skip_reconfirmation! , closes #1708
2012-03-09 18:12:30 +01:00
Rodrigo Flores
b928b8b3a2
Merge pull request #1700 from strzalek/patch-1
...
Fix formatting in README
2012-03-05 08:19:02 -08:00
Łukasz Strzałkowski
075fc96f10
Fix formatting in README
2012-03-05 17:01:46 +01:00
Rodrigo Flores
15f6255c7c
Update CHANGELOG.rdoc
2012-03-03 16:41:24 -03:00
Rodrigo Flores
2b79519ad1
Changelog
2012-03-03 15:25:07 -03:00
Rodrigo Flores
617a8876a6
Merge branch 'deprecating-ausence-of-required-fields'
2012-03-03 15:16:07 -03:00
Rodrigo Flores
7b7af57813
Minor fixes on models_test
2012-03-03 15:10:17 -03:00
Rodrigo Flores
a12f6ec70c
Failure is better than exceptions
2012-03-03 14:49:59 -03:00
Rodrigo Flores
fffc3b1e0e
Moved a method to support
2012-03-03 14:41:22 -03:00
Rodrigo Flores
af12ec2b01
Fixing a deprecation warning
2012-03-03 14:32:53 -03:00
Rodrigo Flores
ecfc7d752a
Deprecation warning on module doesn't have a required_fields method
2012-03-03 14:30:59 -03:00
Rodrigo Flores
bc096994b0
Merge pull request #1696 from plataformatec/reverting
...
Adding back links partial to shared
2012-03-03 07:05:04 -08:00
Rodrigo Flores
ba80074b7b
Added a missing hide!
2012-03-03 11:32:58 -03:00
Rodrigo Flores
f04d883ac1
Deprecation warning
2012-03-03 11:12:30 -03:00
Rodrigo Flores
9bf718dd82
Revert "Move devise/shared/_links.erb to devise/_links.erb"
...
This reverts commit aa2d15aa33 .
Conflicts:
CHANGELOG.rdoc
2012-03-03 10:40:59 -03:00
Rodrigo Flores
643d5600b2
Changelog adjustments
2012-03-03 08:41:23 -03:00
Rodrigo Flores
1edae9c6c1
Changelog update
2012-03-03 08:39:24 -03:00
José Valim
b41e5f5bf6
Update CHANGELOG
2012-03-03 12:11:40 +01:00
José Valim
2f6ecc1328
Do not call after sign in hook without resource, closes #1666 .
2012-03-03 12:09:26 +01:00
José Valim
b93288875f
Update lib/devise/rails/routes.rb
2012-03-03 11:16:21 +01:00
Rodrigo Flores
bb4f699d03
Fixing two tests
2012-03-03 01:25:17 -03:00
Rodrigo Flores
f1d991fa8b
Merge pull request #1681 from abevoelker/change-omniauth-flash-wording
...
Change OmniAuth flash wording (authorize->authenticate)
2012-03-02 20:16:54 -08:00
Rodrigo Flores
4ce7854f44
Changelog
2012-02-25 10:38:40 -02:00
Rodrigo Flores
5ef35ee1bd
Adding required_fields to all modules
2012-02-24 20:57:58 -02:00
Rodrigo Flores
6d5bccc050
Added required fields to validatable
2012-02-24 20:57:58 -02:00
Abe Voelker
3ac2c1dd18
Change OmniAuth flash wording (authorize->authenticate)
2012-02-24 14:35:43 -06:00
Carlos Antonio da Silva
07a41ecf6f
Merge pull request #1679 from codeodor/patch-1
...
Include note about restarting the rails app if it's already running
2012-02-23 15:57:44 -08:00
Sammy Larbi
61e85a578e
Include note about restarting the rails app if it's already running, because the last 2 apps I used Devise with, I could not figure out why I was getting very strange errors, and finally today I figured out it was due to the fact that it needed to reload.
2012-02-23 17:37:13 -06:00
José Valim
88d68587e1
Update lib/devise/controllers/helpers.rb
2012-02-23 21:06:39 +01:00
Rodrigo Flores
23ae04e6cb
Merge pull request #1675 from plataformatec/fix_assertion
...
Fix the assert_same_content assertion helper
2012-02-22 10:51:05 -08:00
Lucas Mazza
64c05f2ce9
Fix the assert_same_content assertion helper
...
and a broken confirmable test.
2012-02-22 16:49:09 -02:00
José Valim
c5cb60a752
Merge pull request #1673 from plataformatec/check_attributes_rebased
...
Check attributes on models
2012-02-22 08:07:16 -08:00
Rodrigo Flores
803e4f5524
Changed message and refactored exception to use a initializer
2012-02-22 13:55:06 -02:00
Rodrigo Flores
a909bfaf85
Added required_fields when reconfirmable
2012-02-22 13:55:06 -02:00
Rodrigo Flores
bc11e9f300
One exception to rule them all
2012-02-22 13:55:05 -02:00
Rodrigo Flores
e3412d4207
No need to sort anymore
2012-02-22 13:55:05 -02:00
Rodrigo Flores
faf8b01ecc
Fixing some tests and adding an assert message
2012-02-22 13:55:05 -02:00
Rodrigo Flores
d7337c5b26
Added a missing test and asserting same content for 1.8 compatibility
2012-02-22 13:55:05 -02:00
Rodrigo Flores
2ab1086b80
Test, you shall pass!
2012-02-22 13:55:05 -02:00
Rodrigo Flores
85f2f88c59
Added required fields to lockable
2012-02-22 13:55:05 -02:00
Rodrigo Flores
ce3422e75a
Added required_fields to recoverable
2012-02-22 13:55:04 -02:00
Rodrigo Flores
bee87843b4
Added required_fields to rememberable
2012-02-22 13:55:04 -02:00
Rodrigo Flores
18aef6ac33
Some refactor
2012-02-22 13:55:03 -02:00
Rodrigo Flores
890f6031c3
Required fields on trackable
2012-02-22 13:55:03 -02:00
Rodrigo Flores
f3bace570d
Required fields on token_authenticatable
2012-02-22 13:55:02 -02:00
Rodrigo Flores
533511f8c3
Required fields on encryptable
2012-02-22 13:55:02 -02:00
Rodrigo Flores
6489354b0e
Required fields on confirmable
2012-02-22 13:55:02 -02:00
Rodrigo Flores
1bbae013cc
✂️ whitespaces
2012-02-22 13:55:02 -02:00
Rodrigo Flores
8ac8129fe7
Added required_fields to database_authenticatable
2012-02-22 13:55:01 -02:00
Rodrigo Flores
9667a38bc9
Added check_model! method
2012-02-22 13:55:01 -02:00
José Valim
e3df7f033e
Update .travis.yml
2012-02-21 08:47:28 +01:00
José Valim
989fd92b84
Merge pull request #1672 from RogerE/rememberable_options-in-initializer
...
Use rememberable_options instead of deprecated cookie_options in initializer
2012-02-20 23:10:57 -08:00
RogerE
de24170a79
Use rememberable_options instead of deprecated cookie_options in initializer
2012-02-21 08:01:17 +01:00
José Valim
5a0548621f
Remove deprecated examples from README, closes #1669 .
2012-02-20 18:53:45 +01:00
Rafael Mendonça França
0f8e472dab
Update CHANGELOG.rdoc
2012-02-18 14:24:49 -02:00
George Guimarães
b190fa38c7
typo
2012-02-17 19:15:46 -02:00
José Valim
b0b01dae81
Update CHANGELOG.
2012-02-17 12:51:00 +01:00
José Valim
f2b4ba6110
Release 2.0.4
2012-02-17 12:46:31 +01:00
José Valim
d15d0ba6a5
Update CHANGELOG.
2012-02-17 12:46:31 +01:00
José Valim
fc3af50b55
Fix regression where warden was being configured too early.
2012-02-17 12:46:31 +01:00
José Valim
a0a141b457
Merge pull request #1661 from mreinsch/fix_subdomain_routing
...
fix for when using :host in routes
2012-02-17 02:31:14 -08:00
Michael Reinsch
0315ca2701
fix for :host getting overwritten in scope[:options] and thus not generating URLs with correct hostnames
2012-02-17 19:14:42 +09:00
Rodrigo Flores
9f4f973277
Bumping new version
2012-02-16 16:07:10 -02:00
Rodrigo Flores
b825e16e36
Merge branch 'issue-solving'
2012-02-16 16:01:59 -02:00
Rodrigo Flores
24b4db4352
Added Gemfile.rails-3.1.x.lock
2012-02-16 15:53:22 -02:00
Rodrigo Flores
06941ac7a2
Updating gemfile to use the new warden version
2012-02-16 15:49:16 -02:00
Rodrigo Flores
91d0360a11
Changelog
2012-02-16 15:34:41 -02:00
Rodrigo Flores
17bae5bba2
Executing all sign_out function regardless of logged in users presence
2012-02-16 15:30:12 -02:00
Rodrigo Flores
1a41fff009
Bye PathChecker
2012-02-16 15:25:06 -02:00
Rodrigo Flores
7739c495e7
Any? instead of !empty?
2012-02-16 15:22:10 -02:00
Rodrigo Flores
5607f7a2c8
Updating Rails 3.1 gemfile
2012-02-16 15:08:47 -02:00
Rodrigo Flores
2a74416d68
Documentation update
2012-02-16 14:53:11 -02:00
Rodrigo Flores
65f08ea175
Removing signed_out path workaround
2012-02-16 14:53:11 -02:00
Rodrigo Flores
70b9bdcc9a
Adding temporary dependency to warden master
2012-02-16 14:53:11 -02:00
Rodrigo Flores
584d5d1a81
Adding the api changes on sign_out_all_scopes
2012-02-16 14:53:10 -02:00
Rodrigo Flores
9e7ab38bce
sign_out helper uses the new warden api
2012-02-16 14:53:10 -02:00
José Valim
71f5a01b83
Update CHANGELOG.
2012-02-16 12:31:04 +01:00
José Valim
df8ac1cfe6
Clean up remember token related config.
2012-02-16 12:30:04 +01:00
José Valim
72b6a0a0c9
Another attempt to avoid false positives in this warning.
2012-02-16 08:01:03 +01:00
José Valim
93cf836564
Avoid false positives for warning message.
2012-02-15 23:39:36 +01:00
José Valim
d2223ee5e3
Improve coverage, cache array in a constant.
2012-02-15 20:18:52 +01:00
José Valim
b6ab8d6776
Update lib/devise/models/authenticatable.rb
2012-02-15 20:05:18 +01:00
José Valim
456989ca8d
Simply blacklist Devise attributes instead of trying to be smart.
2012-02-15 19:52:10 +01:00
José Valim
2e27d1f763
Update CHANGELOG, release 2.0.2
2012-02-15 17:26:23 +01:00
José Valim
27a83f3dd3
Ensure Devise.available_router_name is never nil, closes #1648
2012-02-15 17:13:57 +01:00
José Valim
79aadb4bc9
Set autocomplete to off by default on password field.
2012-02-15 17:07:58 +01:00
José Valim
43d0715238
Better error message in case a trackable module can't be saved.
2012-02-15 17:07:46 +01:00
José Valim
fb8e093389
Accept devise_i18n_options to handle custom i18n values, closes #1633
2012-02-15 16:58:23 +01:00
José Valim
4b47c3ab73
Clean up devise_controller? related code.
2012-02-15 16:58:23 +01:00
José Valim
a0eff85d73
Use ResourceHelpers so we get a warning in case someone passes a plural name, closes #1651 .
2012-02-15 16:58:23 +01:00
Rodrigo Flores
aa36719bd9
Merge branch 'ysiadf-integrating'
2012-02-13 18:24:38 -02:00
Ysiad Ferreiras
33aa71c38f
Update lib/generators/templates/README
2012-02-13 18:24:11 -02:00
Ysiad Ferreiras
1f20d7da25
Update lib/generators/templates/README
2012-02-13 18:23:45 -02:00
Ysiad Ferreiras
dfcf825721
Update README.doc to specify adding devise to the Gemfile.
2012-02-13 18:23:07 -02:00
José Valim
eaae041b4c
Merge pull request #1635 from sj26/test-helpers-process-should-return-response
...
Fix test behaviour for rspec subject requests
2012-02-11 22:32:35 -08:00
Samuel Cochran
dbd79746b1
Fix test behaviour for rspec subject requests
2012-02-10 21:42:20 +08:00
José Valim
f1a27b8f33
Release 2.0.1.
2012-02-09 11:11:12 +01:00
José Valim
86c8e5455a
Fix gemspec to not include tmp or log files, closes #1632 .
2012-02-09 11:07:03 +01:00
José Valim
dc37b82298
Show a warning message in case routes are not mounted in the main app.
2012-02-07 10:56:30 +01:00
José Valim
7d09b84ded
Split send_on_create_confirmation_instructions, closes #1621
2012-02-03 17:35:55 +01:00
José Valim
53894e1e2b
Better exception message.
2012-02-03 17:29:22 +01:00
José Valim
7e3ccbe835
Better implementation for hide!
2012-02-03 09:12:15 +01:00
José Valim
8b8b6a866d
Hide internal generators, closes #1586
2012-02-03 09:04:05 +01:00
Rodrigo Flores
222e606f89
Added a documentup link on README
2012-02-03 00:39:28 -02:00
José Valim
83c47552e8
Extract auth_options into its own method.
2012-02-01 09:37:33 +01:00
José Valim
03851cab90
Update lib/devise/rails/routes.rb
2012-02-01 07:26:39 +01:00
Carlos Antonio da Silva
bb6d89bbc3
Change README do markdown
2012-01-30 18:58:04 -02:00
José Valim
b061f985cf
Update README to remove reference to old migration helpers.
2012-01-27 19:43:47 +01:00
José Valim
ecd7c17ffd
Improve the message for case_insensitive_keys.
2012-01-27 17:53:44 +01:00
José Valim
a71a352822
Release 2.0.0
2012-01-26 19:40:04 +01:00
José Valim
c08c921b3f
Update README.rdoc
2012-01-26 18:19:02 +01:00
Carlos Antonio da Silva
95399f1286
2012 [ci skip]
...
Hope we can do the same bump next year :)
2012-01-24 19:35:14 -02:00
José Valim
b5fd15c2e1
Let's show the default values for convenience.
2012-01-24 17:34:18 +01:00
José Valim
85e9dab370
Release 2.0.0.rc2.
2012-01-24 14:29:26 +01:00
José Valim
8c9cf7d671
Add deprecations, update changelog.
2012-01-24 14:23:34 +01:00
José Valim
82da877863
Merge pull request #1565 from joliss/unconfirmed-message
...
More helpful sign-up message for Confirmable
2012-01-24 05:06:51 -08:00
José Valim
275c480f89
Redirect to the previous URL on timeout, closes #1596
2012-01-24 14:00:36 +01:00
José Valim
477d9fbcba
Do not fallback to string on failure app, easier for debugging, closes #1587
2012-01-24 13:46:25 +01:00
José Valim
b88524027c
Get rid of deprecation warning.
2012-01-24 13:41:19 +01:00
José Valim
55be93d5c4
Deprecated support for nested devise_for blocks
2012-01-24 13:40:04 +01:00
Jo Liss
c78c196423
More helpful sign-up message for Confirmable
...
This is also better for translations, because we can translate paragraph-wise.
signed_up_but_inactive and signed_up_but_locked are likely not needed,
but I wasn't sure how to best remove them.
2012-01-23 13:52:32 +01:00
José Valim
d8656427fd
Merge pull request #1591 from kaleemullah/master
...
fix unlock message
2012-01-23 03:29:29 -08:00
Kaleem Ullah
41b1e87105
fix unlock message
2012-01-23 15:20:05 +04:00
José Valim
37678ac5ec
Merge pull request #1588 from nashby/fix-travis-build
...
fix travis build
2012-01-23 02:46:24 -08:00
Vasiliy Ermolovich
7832d90077
fix travis build
2012-01-22 22:12:28 +03:00
José Valim
3bd78cabd8
Update to 3.2.0
2012-01-20 19:03:22 +01:00
José Valim
fff75b1904
Merge pull request #1579 from masterkain/patch-1
...
Fix typos in devise.rb
2012-01-17 14:18:10 -08:00
Claudio Poli
97c0339f66
Fix typos in devise.rb
2012-01-17 23:14:26 +01:00
Rafael Mendonça França
5b3f14df3b
Fix README
2012-01-17 15:59:50 -02:00
José Valim
07cdba349d
Merge pull request #1563 from asynchrony/handle_regexp_param_filtering
...
Allow regex to avoid string conversion for parameter filtering
2012-01-16 03:20:17 -08:00
José Valim
197e837e5b
Merge pull request #1564 from pcantrell/patch-1
...
Grammar fix.
2012-01-11 23:09:17 -08:00
pcantrell
13bd4ce46a
Grammar fix.
2012-01-11 23:18:04 -06:00
José Valim
a43d1af23e
Merge pull request #1557 from plataformatec/rails-3-2-fixes
...
Rails 3.2 fixes
2012-01-10 12:26:58 -08:00
Rafael Mendonça França
cbf483143f
Remove rubinius from travis-ci matrix
2012-01-10 11:59:59 -03:00
Rafael Mendonça França
cf5fbb9d65
Fix order specific test
2012-01-10 11:59:20 -03:00
Rafael Mendonça França
d699b80254
Do not use a local network ip as HTTP_X_FORWARDED_FOR header
...
If HTTP_X_FORWARDED_FOR is a local network IP the HTTP_CLIENT_IP
need to be set
2012-01-10 11:43:15 -03:00
Rafael Mendonça França
ead414d0a7
Use global Gemfile in travis-ci
2012-01-10 10:52:14 -03:00
Rafael Mendonça França
cfdabf874a
Change gemspec to avoid subshells and remove unneeded files
...
More informations at http://tenderlovemaking.com/2011/12/05/profiling-rails-startup-with-dtrace/
2012-01-09 23:47:35 -03:00
Rafael Mendonça França
e954254abb
Fix gemfiles
2012-01-09 23:18:03 -03:00
Rafael Mendonça França
93d4bb8361
Add travis-ci specific gemfiles
2012-01-09 22:59:13 -03:00
Rafael Mendonça França
edb0aac091
Whitespaces ✂️
2012-01-09 18:11:10 -03:00
Rafael Mendonça França
9549a32500
Do not use deprecated ActiveSupport::Base64. Closes #1554
2012-01-09 18:10:49 -03:00
José Valim
a949f9eca2
FailureApp shuold always consider Devise.router_name, closes #1544
2012-01-03 20:32:51 +01:00
Carlos Antonio da Silva
f4bbad6323
Merge pull request #1543 from joliss/doc
...
Improve routing API docs
2012-01-03 06:39:41 -08:00
Jo Liss
8a4d4864ea
Improve routing API docs
2012-01-03 15:33:19 +01:00
José Valim
a8de38d0b0
Fix http://@ from CHANGELOG
2012-01-02 23:18:57 +01:00
José Valim
18dc82c6b6
add a test that :module => :devise overrides previous configs.
2012-01-02 22:47:28 +01:00
José Valim
897c1c684e
Allow router_name to be customizable via Devise.router_name, useful for engines
2012-01-02 22:43:07 +01:00
José Valim
1ebcb09fc1
Do not rely on root_path. Redirect to / if not available.
2012-01-02 22:43:07 +01:00
José Valim
0f11226ced
Merge pull request #1540 from michaelklishin/master
...
Bring .travis.yml up to date
2012-01-02 13:21:51 -08:00
José Valim
dada404a6b
Support 3.2 as well.
2012-01-02 22:19:05 +01:00
Michael Klishin
e4a37d6a5e
Bring .travis.yml up to date
...
* rbx and rbx-2.0 are now both aliases for rbx-18mode (master in 1.8 mode)
* 1.9.3 final is available
2012-01-03 01:14:59 +04:00
José Valim
66b93e8fd2
Clean up as we don't need to call render_with_scope anymore.
2012-01-02 22:12:09 +01:00
José Valim
d9df632671
Get rid of InternalHelpers, refactor scoped views for more performant behavior.
2012-01-02 22:01:28 +01:00
José Valim
aa2d15aa33
Move devise/shared/_links.erb to devise/_links.erb
2012-01-02 21:26:26 +01:00
José Valim
0b55ebb150
Remove 3.0 related code.
2012-01-02 21:04:54 +01:00
José Valim
7c11564613
Remove Rails 3.0 only code.
2012-01-02 20:43:39 +01:00
José Valim
c3f864f2b6
Allow parent controller to be customizable.
2012-01-02 20:39:22 +01:00
José Valim
a29a30effc
Move InternalHelpers to parent controller.
2012-01-02 20:30:56 +01:00
José Valim
0af2722926
Let's depend on 3.1 forward.
2012-01-02 20:24:42 +01:00
José Valim
78efec09d5
Move notes to the top.
2012-01-02 20:24:42 +01:00
José Valim
1fdeadd113
Merge pull request #1188 from sj26/controller-inheritence
...
Make all controllers inherit from a single DeviseController
2012-01-02 11:24:33 -08:00
José Valim
a1464dbad7
Replace github.com/ by @
2012-01-02 20:16:40 +01:00
José Valim
dd2a66d00c
Update CHANGELOG.
2012-01-02 20:16:11 +01:00
José Valim
1152fda687
Only proxy to application controller if it exists.
2012-01-02 20:00:38 +01:00
José Valim
fd0e929087
Generate session routes for token authentication, but mark it as no_input.
2012-01-02 19:38:02 +01:00
José Valim
8b3e0e52f1
Generate routes again for token, closes #1526 .
2012-01-02 19:27:05 +01:00
José Valim
8ff080fb99
Improve docs for params/http authenticatable.
2012-01-02 19:24:48 +01:00
José Valim
6bca228888
Merge pull request #1527 from joliss/generator
...
Use consistent number of hash signs
2012-01-02 10:21:41 -08:00
José Valim
fd1e588645
Merge pull request #1534 from jigyasa/master
...
Fix for a bug: Incorrect message for locked account
2012-01-02 10:04:17 -08:00
José Valim
024d9e6df7
Merge pull request #1537 from nashby/fix-issue-1530
...
regenerate confirmation token on reconfirmation
2011-12-31 04:03:14 -08:00
Vasiliy Ermolovich
aca8d3f34c
regenerate confirmation token on reconfirmation, closes #1530
2011-12-31 14:22:58 +03:00
Jigyasa Makkar
e2030a740d
Fixed a bug in lockable wherein when a user tries to login with correct password after being locked,
...
failed attempts count gets reset. When the user tries to login with an incorrect password next,
the message shown is for invalid password instead of locked account since this check
depended mainly on failed attempts count.
2011-12-29 23:57:39 +05:30
Jo Liss
27b745d04f
Use consistent number of hash signs
2011-12-28 17:26:57 +01:00
José Valim
f712d07b23
Merge pull request #1516 from jm81/master
...
Move "include Devise::Models::Authenticatable" inside devise_modules_hook! call
2011-12-20 14:00:36 -08:00
Jared Morgan
f8ea5e0942
move include Devise::Models::Authenticatable inside devise_modules_hook! call
...
This allows alternate ORMs to run compatibility setup code before
Authenticatable is included.
The particular issue for dm-devise is that DataMapper does not have a
before_validation method, which is called when Authenticatable is included
(as of plataformatec/devise@bd27bf76 ). dm-devise adds before_validation in
it's devise_modules_hook!
2011-12-20 15:52:26 -06:00
José Valim
89db0dd44d
Do not run validatins unless on reconfirmable branch, closes #1515 .
2011-12-20 20:54:49 +01:00
José Valim
94e5a589b6
Update README.rdoc
2011-12-19 13:35:54 +01:00
José Valim
2dbb23f973
Update README.rdoc
2011-12-19 13:34:31 +01:00
José Valim
b71028dc73
Add a note to the README.
2011-12-19 13:33:33 +01:00
José Valim
f5aab14766
Release Devise 2.0.0.rc.
2011-12-19 13:31:24 +01:00
José Valim
273c5e99c1
Add space between messages.
2011-12-19 13:30:33 +01:00
José Valim
7ba37b5dc0
Improve messages.
2011-12-19 13:21:17 +01:00
José Valim
059d3856cf
Update CHANGELOG.
2011-12-19 12:58:34 +01:00
José Valim
9dbd265fdd
Update messages.
2011-12-19 12:55:41 +01:00
José Valim
09ae63f822
Update CHANGELOG.rdoc
2011-12-19 12:32:32 +01:00
T1D
c9becd3ea1
Allow regular expressions to avoid string conversion for parameter
...
filtering.
2011-12-14 10:41:24 -06:00
José Valim
5a245b3d55
Merge pull request #1508 from spagalloco/patch-1
...
Fixed gemnasium link in README to link to the web page and not the image
2011-12-12 13:57:06 -08:00
Steve Agalloco
7d3b16fe73
Fixed gemnasium link in README to link to the web page and not the image
2011-12-12 15:08:13 -05:00
José Valim
fd85b25d29
PathChecker should not attempt to validate invalid routes, closes #1505
2011-12-12 11:35:41 +01:00
José Valim
5eebf74f69
Fix a bug where passing :format => false to devise_for was permanent, closes #1504
2011-12-12 09:25:19 +01:00
José Valim
5a11c6597c
Usage of Devise.stateless_token= is deprecated in favor of appending :token_auth to Devise.skip_session_storage
2011-12-11 20:39:41 +01:00
José Valim
930b324c15
Usage of confirm_within was deprecated in favor allow_unconfirmed_access_for
2011-12-11 20:18:02 +01:00
José Valim
d952dea32b
Remove the code that was dynamically adding columns to active record
2011-12-11 20:07:50 +01:00
José Valim
9a6ac7ab69
Add confirmable to admin.
2011-12-11 20:07:50 +01:00
José Valim
df43ee640d
Add Gemfile back to repository.
2011-12-11 20:07:50 +01:00
José Valim
309b57f4ea
Merge pull request #1496 from laserlemon/patch-1
...
Add dependency status to README
2011-12-10 14:29:36 -08:00
José Valim
cc839caba5
Update CHANGELOG, rename method.
2011-12-10 23:28:23 +01:00
Steve Richert
d734648b15
Add dependency status to README
2011-12-09 15:46:52 -05:00
José Valim
006400905b
Merge pull request #1493 from nashby/fix-issue-1486
...
redirect users to sign in page after unlock, closes #1486
2011-12-08 11:13:24 -08:00
Vasiliy Ermolovich
1e1e964d25
redirect users to sign in page after unlock, closes #1486
2011-12-08 22:06:09 +03:00
José Valim
263e0b7692
Fix failing test.
2011-12-07 13:23:55 +01:00
José Valim
01d4d0131b
Merge pull request #1489 from dmitriy-kiriyenko/fix_delegator
...
Fix taking associated failure app from the scope in the given env.
2011-12-07 04:12:26 -08:00
Dmitriy Kiriyenko
f41e4befde
Fix taking associated failure app from the scope in the given env.
...
There is a delegator to get failure app, introduced in 4629bee and tuned
in 24b26026 . The latter commit introduced a bit of logic, however, no
tests are included into commit. Needless to say this resulted in a
broken code.
The point is that `env["warden.options"][:scope]` returns a string.
However, `Devise.mappings` is a hash with symbol keys.
Adding tests and converting scope to symbol here.
2011-12-07 14:09:00 +02:00
Rodrigo Flores
94fca31be8
Improving the unconfirmed message
2011-12-06 09:24:06 -02:00
Rodrigo Flores
19db459fca
typo
2011-12-06 08:35:02 -02:00
José Valim
7693173ecd
Final tidy up on removing schema helpers.
2011-12-05 12:17:02 +01:00
José Valim
a0294cbae8
Improve fields.
2011-12-05 12:02:25 +01:00
José Valim
1cf008cbe3
Remove apply schema from mongoid as well.
2011-12-05 11:48:27 +01:00
José Valim
87b84ffded
Remove schema fields from Devise.
2011-12-05 11:28:04 +01:00
José Valim
035e56215d
Enable reconfirmable by default and disable apply_schema.
2011-12-05 00:03:53 +01:00
José Valim
fa4d420fdb
Update CHANGELOG.
2011-12-05 00:01:25 +01:00
José Valim
bd27bf7677
Deprecate and disable old behavior accumulated with time.
2011-12-04 23:58:19 +01:00
José Valim
03d9ebb56e
Merge branch 'reconfirm'
2011-12-04 22:19:07 +01:00
José Valim
113b48a2ad
Update CHANGELOG.
2011-12-04 22:18:58 +01:00
José Valim
6aed8f1c87
Clean up reconfirmable behavior.
2011-12-04 22:14:44 +01:00
José Valim
6d681c5b8a
Merge remote-tracking branch 'heimidal/updates' into reconfirm
...
Conflicts:
lib/devise/models/confirmable.rb
test/support/helpers.rb
2011-12-04 20:58:41 +01:00
José Valim
b3034292f2
Ensure admin is running with manual lock strategy.
2011-12-01 13:19:05 +01:00
Rodrigo Flores
4243791b47
Bumping to 1.5.2
2011-11-30 07:19:12 -02:00
Rodrigo Flores
b79c69140d
Adding myself to the team! w00t!
2011-11-30 07:19:12 -02:00
José Valim
ede004169c
Merge pull request #1462 from lest/timeout-in-method
...
implement dynamic value for timeout_in as a model method instead of a proc
2011-11-25 00:27:18 -08:00
lest
37dad2172b
implement dynamic value for timeout_in as a model method instead of a proc
2011-11-25 11:01:42 +03:00
José Valim
c8c471a128
Merge pull request #1461 from lest/fix-readme-mongodb-version
...
fix mongodb version required to run tests in readme
2011-11-24 14:48:26 -08:00
lest
f72ff72c0c
fix mongodb version required to run tests in readme
2011-11-24 22:10:42 +03:00
Rodrigo Flores
dc3bfac876
Merge pull request #1460 from lest/dynamic-timeout-in
...
timeout_in option can be a Proc object
2011-11-24 11:10:08 -08:00
lest
426223dda0
timeout_in option can be a Proc object
2011-11-24 21:42:58 +03:00
José Valim
5909d6a0c5
Fix up previous commit and update CHANGELOG.
2011-11-24 09:24:06 +00:00
José Valim
5570929b56
Merge pull request #1458 from kirs/update-attrubutes-as
...
Added support for rails 3.1 new mass assignment conventions
2011-11-24 00:59:13 -08:00
Kir
5ba6670164
Added support for rails 3.1 new mass assignment conventions
2011-11-24 12:51:03 +04:00
José Valim
589442b09b
Update lib/devise/omniauth/config.rb
2011-11-24 08:32:48 +00:00
José Valim
0c67cff2a0
Merge pull request #1455 from AstonJ/readme-installation-update
...
Adding reminder to restart server in the installation guide
2011-11-23 00:43:48 -08:00
José Valim
9c3d5705b5
Update lib/generators/templates/devise.rb
2011-11-23 08:42:45 +00:00
AstonJ
2f2662e7a5
Adding reminder to restart server in the installation guide
2011-11-23 01:31:20 +00:00
Rodrigo Flores
99040535d7
Bumping to 1.5.1
2011-11-22 13:12:21 -02:00
José Valim
582f00ed95
Devise should not attempt to load OmniAuth strategies. Strategies should be loaded before hand by the developer or explicitly given to Devise.
2011-11-20 19:42:02 +00:00
José Valim
1d2f906af1
Tidy up Gemfile.
2011-11-20 19:22:38 +00:00
José Valim
dfb8ff372d
Revert "Fixed require_strategy for google_oauth2 omniauth strategy."
...
This reverts commit 065963f6d3 .
2011-11-20 19:21:08 +00:00
José Valim
1e37e42239
Do not use stored location for sign out.
2011-11-20 19:19:41 +00:00
José Valim
ce1bd142e2
Merge pull request #1438 from hinrik/master
...
Allow specifying a resource_return_to for sign out
2011-11-20 11:17:44 -08:00
Rafael Mendonça França
35015e5ceb
Add me as notification recipient
2011-11-14 16:37:39 -02:00
Rafael Mendonça França
03b56ffd1f
Merge pull request #1441 from buggle/master
...
fixed require for google_oauth2 strategy
2011-11-14 10:24:32 -08:00
Christian Buggle
065963f6d3
Fixed require_strategy for google_oauth2 omniauth strategy.
2011-11-14 19:14:28 +01:00
Rodrigo Flores
a71319a080
Bumping to 1.5.0
2011-11-13 19:17:03 -02:00
Hinrik Örn Sigurðsson
9ea7249368
Allow specifying a resource_return_to for sign out
...
It was impossible to accomplish this by providing a
custom #after_sign_out_path_for in ApplicationController because the
session gets destroyed before it is called. Furthermore,
resource_return_to is now used by default if it exists, so users won't
have to provide a custom #after_sign_out_path_for in that case.
2011-11-13 20:27:08 +00:00
Rodrigo Flores
301e24c06c
Bumping to 1.5.0.rc
2011-11-10 19:18:54 -02:00
Rodrigo Flores
6b108404ba
Adding me to ci notifications
2011-11-10 18:40:28 -02:00
Rodrigo Flores
0b661b6d7f
Updated changelog
2011-11-10 18:40:28 -02:00
Rodrigo Flores
3ab68a6896
Some changes on config_test to make it looks like the other ones
2011-11-10 18:39:52 -02:00
José Valim
97d8e39932
Update CHANGELOG.rdoc
2011-11-10 16:18:10 -02:00
José Valim
5c71c1cf19
Improve devise generator tests.
2011-11-10 10:19:57 -02:00
José Valim
dc8aa9ef83
Move param filtering to its own object and make all finder methods pass through it, closes #1413 .
2011-11-10 10:14:02 -02:00
José Valim
ab54e1f66a
Update CHANGELOG: Markerb templates.
2011-11-10 09:32:13 -02:00
José Valim
0fd5493220
Merge pull request #1326 from sbounmy/master
...
feature added : markerb generator for mails
2011-11-10 03:27:53 -08:00
Rodrigo Flores
5c3f75d90a
Merge pull request #1426 from TamiasSibiricus/omniauth-1.0.0
...
Support OmniAuth 1.0.0 stable
2011-11-10 03:16:53 -08:00
Paul McKellar
e8aabd4652
s/Gererates/Generates/
2011-11-09 20:58:58 -02:00
José Valim
350bd188df
Merge pull request #1435 from nashby/master
...
use Time.now.utc instead of Time.now, closes #1421
2011-11-09 12:31:53 -08:00
Vasiliy Ermolovich
7e9ba53d82
use Time.now.utc instead of Time.now, closes #1421
2011-11-09 23:26:48 +03:00
José Valim
16208f7ad7
Rework previous commit to clean up the instance variable dynamically.
2011-11-09 17:00:42 -02:00
José Valim
cc822e08aa
Merge pull request #1433 from artemk/master
...
current_user still returning user after sign_out
2011-11-09 10:52:13 -08:00
artemk
c3880e52e4
#1432 current_user still returning user after sign_out
2011-11-09 20:35:19 +02:00
Hugo Baraúna
a5aa03b983
Update the Copyright year
2011-11-08 22:59:04 -02:00
Rodrigo Flores
06b7baabcc
Changed travis ci url
2011-11-08 15:42:11 -02:00
Rodrigo Flores
b7cffeed8c
Ops, no need for the link to have https
2011-11-08 15:39:05 -02:00
Rodrigo Flores
380df0121b
Adding https to avoid caching the travis passing status img
2011-11-08 15:27:26 -02:00
José Valim
611e0335cc
Temporarily remove jruby from travis because 1.6.5 has a null pointer exception bug.
2011-11-07 21:39:27 -02:00
José Valim
22136a708b
Fix failure_app failing test.
2011-11-07 21:38:31 -02:00
TamiasSibiricus
2a29e87eb9
Update dependencies for OmniAuth 1.0.0 stable
2011-11-07 22:58:33 +02:00
Denis Kiselev
ea9e8c0c9b
Merge remote-tracking branch 'dkastner/omniauth-1.0' into omniauth-1.0.0
...
Conflicts:
test/omniauth/url_helpers_test.rb
2011-11-07 22:26:51 +02:00
José Valim
58d61c290a
Update CHANGELOG.
2011-11-07 09:20:09 -02:00
José Valim
bad6049d73
Allow :failure_app as configuration in devise_for.
2011-11-07 09:20:09 -02:00
José Valim
24b26026ef
Delegator now checks the mapping for the proper failure app.
2011-11-07 09:20:09 -02:00
José Valim
4629beecd7
Cache failure_app action builder and pipe call through delegator.
2011-11-07 09:20:09 -02:00
José Valim
f67793cb0d
Merge pull request #1423 from plataformatec/adding-ci-status-to-readme
...
Added CI status to the README
2011-11-06 14:39:51 -08:00
Rodrigo Flores
538c16cd00
Added CI status to the README
2011-11-06 20:18:46 -02:00
José Valim
3a26eea0cc
Support warden ~> 1.1, closes #1422
2011-11-06 18:47:55 -02:00
José Valim
f9ef2cd32e
Merge pull request #1420 from nashby/master
...
generate migrations with new .change method for rails >= 3.1. closes #1345
2011-11-06 05:23:58 -08:00
Vasiliy Ermolovich
493ddbd99e
change method should be instance method. closes #1345
2011-11-06 16:15:17 +03:00
Vasiliy Ermolovich
f00d9c5eff
generate migrations with new .change method for rails >= 3.1. closes #1345
2011-11-06 15:47:34 +03:00
José Valim
95be78ac5e
No need to use git repo anymore for jdbc adapter.
2011-11-06 09:42:22 -02:00
José Valim
e9c263c326
Merge pull request #1418 from locomotivecms/simple_scoped_mailer
...
Re-define the devise mailer inside a model
2011-11-06 01:38:08 -08:00
José Valim
1bace6df4e
Be sure to expire cached devise data after sign in, closes #1411
2011-11-05 20:11:09 -02:00
José Valim
0439c35198
Simplify active_for_authentication? checking.
2011-11-05 19:54:40 -02:00
José Valim
a816e538ab
Fix bug where activation messages were shown first than the credentials error message, closes #1410
2011-11-05 19:47:58 -02:00
did
bbd117bd92
implementation of a much simpler solution
2011-11-05 16:53:27 +01:00
José Valim
d448e7d841
Timeoutable also skips tracking if skip_trackable is given
2011-10-25 18:43:48 +02:00
José Valim
6fcfba229d
Improve docs for update_without_password.
2011-10-25 18:43:48 +02:00
José Valim
d525636423
Merge pull request #1398 from salidux/master
...
Trackable don't work properly behind a proxy
2011-10-22 10:51:19 -07:00
salidux
d11402612f
test for trackable behind a proxy
2011-10-22 11:57:18 -02:00
José Valim
6079a025ca
Fix doc typo.
2011-10-21 13:38:39 +03:00
José Valim
81f0c203a9
Update CHANGELOG.
2011-10-20 16:50:38 +02:00
salidux
60822641cb
fix to obtain user original IP in a proxyed environment
2011-10-19 22:23:04 -02:00
José Valim
fac02b58bc
Another attempt to fix the misterious loading helpers bug.
2011-10-18 08:35:50 +02:00
Derek Kastner
c9902f34d1
Intelligent OmniAuth strategy loader
2011-10-17 13:42:40 -04:00
Derek Kastner
8b45c0a856
Correct test for named OmniAuth strategy
2011-10-17 10:09:47 -04:00
José Valim
2a5ad4664b
Change all paranoid settings to behave as success instead of as failure, closes #1375 .
2011-10-15 10:52:00 +02:00
Jim Herzberg
b98720d324
jh - reworking paranoid mode in passwords controller
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-15 10:45:33 +02:00
Derek Kastner
3f0b5fbd71
Support for OmniAuth 1.0.0
2011-10-14 21:31:17 -04:00
José Valim
fa1034b04c
Merge pull request #1384 from korobkov/master
...
many typos (http -> https)
2011-10-13 15:21:21 -07:00
Andrey Korobkov
13ed2183ee
many typos (http -> https)
2011-10-13 19:14:10 +04:00
Rafael Mendonça França
6fae1f60fd
Merge pull request #1383 from korobkov/patch-1
...
typo
2011-10-13 07:15:07 -07:00
Andrey Korobkov
a46144e022
typo
2011-10-13 18:14:09 +04:00
Brian Rose
7f754caba3
Merge branch 'master' into updates
2011-10-12 10:56:08 -06:00
José Valim
2372823fd8
Merge pull request #1372 from avocade/readme-update
...
Update README with troubleshooting for heroku
2011-10-10 10:37:26 -07:00
Oskar L-B
52282a5a26
Update README with troubleshooting for heroku
...
Re: issue https://github.com/plataformatec/devise/
commit/96f55a7ac7a61effd03a7f43dbbdfb6af8894579
2011-10-10 19:33:46 +02:00
José Valim
96f55a7ac7
Update docs and CHANGELOG.
...
Conflicts:
CHANGELOG.rdoc
2011-10-10 14:45:30 +02:00
José Valim
990dcc8eef
Try to fix the misterious case where some url helpers are not defined.
2011-10-09 11:50:48 +02:00
Bounmy Stephane
76bff0d4de
removed Gemfile's injection
...
by default : Markerb define then markerb email views generated otherwise
erb
2011-09-30 22:41:02 -07:00
José Valim
59f2767345
Remove deprecated code and tests.
2011-09-29 13:11:12 +02:00
José Valim
bba6562dcc
after_sign_in_path_for now redirects to session[scope_return_to] if any value is stored in it
2011-09-29 13:07:13 +02:00
José Valim
f3aa5e40fb
Update CHANGELOG and bump up to 1.5.0.dev
2011-09-29 12:52:56 +02:00
José Valim
1e2dab3c0c
Assume status 401 if action finishes without status code and no exception, closes #1316 .
2011-09-29 12:28:32 +02:00
José Valim
bc8fc2d4e4
Allow idempotent API requests, closes #1309 .
2011-09-29 11:35:18 +02:00
José Valim
15b76e93d1
The default here is now DELETE.
2011-09-27 10:42:08 +03:00
José Valim
bc2a311a38
Rails is going to load the routes anyway, so we don't need this.
2011-09-24 03:13:39 +03:00
José Valim
f19955705f
Avoid loading routes if we are actually precompiling assets.
2011-09-22 21:56:18 +03:00
José Valim
e4902af15a
Release 1.4.7 with a backward compatibility fix.
2011-09-22 11:51:58 +02:00
José Valim
ab9d856568
Add a deprecation warning for previous controller authorization style.
2011-09-22 11:51:09 +02:00
José Valim
dd1d128333
Edited lib/generators/templates/devise.rb via GitHub
2011-09-21 12:58:10 -07:00
Bounmy Stephane
a629654a15
ensure that the gem markerb entry is not duplicated in the gemfile
2011-09-14 20:20:20 -07:00
José Valim
08a8d7bf51
Prepare for 1.4.6
2011-09-14 16:54:15 -07:00
José Valim
335d36088f
Instead of depending on mapping.controller[:session], make it explicit when we allow auth from params.
2011-09-14 16:52:28 -07:00
José Valim
0b9a95e294
Allow --skip-routes to devise generator.
2011-09-14 16:52:28 -07:00
José Valim
98acc84111
Allow options to be passed to authenticate_user!
2011-09-14 16:52:28 -07:00
José Valim
261c01dfa3
Allow :skip => :all
2011-09-14 16:52:28 -07:00
Bounmy Stephane
dbda19f658
implemented markerb templates
2011-09-13 22:56:50 -07:00
Bounmy Stephane
8067022d98
added injection of markerb in Gemfile
2011-09-13 22:50:39 -07:00
Bounmy Stephane
72ba56b071
generate markerb views with "--markerb" instead of "-m markerb"
2011-09-13 21:46:46 -07:00
Bounmy Stephane
30046f35d7
moved markerb views to lib/generator/templates/markerb
...
using 2 different generator for erb and markerb
2011-09-13 21:42:10 -07:00
Bounmy Stephane
10451e9e38
added mailviewsgenerator
...
now mail generator can copy markerb or erb mail template views
2011-09-13 00:19:48 -07:00
José Valim
ea7f15917f
Merge pull request #1322 from trollixx/patch-1
...
Typo
2011-09-09 03:01:54 -07:00
Oleg Shparber
df3e711ee0
Typo
2011-09-09 12:46:35 +03:00
José Valim
263e903046
Release v1.4.5
2011-09-08 23:55:27 +02:00
George Guimarães
f7bbac0ab9
sets travis to report to maintainers
2011-09-08 08:31:34 -03:00
José Valim
9ebcb691b0
Depend on jdbc master.
2011-09-08 09:05:06 +02:00
José Valim
601e1d3dc9
Update CHANGELOG.
2011-09-08 08:36:06 +02:00
José Valim
7b0a8f9bdc
Also try the root route for convenience, closes #1312 .
2011-09-08 08:32:05 +02:00
José Valim
dd36324756
No need to finalize Devise helpers all the time, closes #1317
2011-09-08 08:31:08 +02:00
José Valim
1b5d0af824
Merge pull request #1313 from jamescook/fix_bug_with_update_with_password
...
DatabaseAuthenticatable#clean_up_passwords should set accessors to nil
2011-09-02 10:48:47 -07:00
James Cook
edcca8cd3f
DatabaseAuthenticatable#clean_up_passwords should set accessors to nil, not empty string.
2011-09-02 13:14:15 -04:00
José Valim
c95ca15b49
Edited lib/devise.rb via GitHub
2011-09-02 13:35:31 +03:00
José Valim
055117e07a
Merge pull request #1308 from rymai/conditional_sign_in_after_password_reset
...
Implement #1306 .
2011-09-01 00:19:56 -07:00
Rémy Coutable
ebbabaea5b
After a password reset, don't show "You are now signed in." if the user can't be signed-in anyway.
2011-09-01 00:24:10 +02:00
José Valim
eba53f8f94
Test against 3.1.0.
2011-08-31 17:16:56 +02:00
José Valim
071f54ac59
Release v1.4.4 with a fix for those using :skip in routes.
2011-08-31 16:45:12 +02:00
José Valim
8796c1c601
Do not always skip helpers, instead provide :skip_helpers as option to trigger it manually
2011-08-31 12:02:57 +02:00
Brian Rose
8c0f74f036
Add better message when user updates while reconfirmable is enabled.
2011-08-30 22:19:18 -06:00
Brian Rose
5a820262f9
Fix double-submit reconfirmation bug
...
Previously, if a user submitted their new email twice, they would bypass
the reconfirmation requirement and wind up auto-confirmed.
2011-08-30 22:19:18 -06:00
Brian Rose
3906456993
Clean up copy and use the Devise API a bit better.
2011-08-30 22:19:18 -06:00
Brian Rose
a1407565c8
Selectively add reconfirmable field in tests when necessary.
2011-08-30 22:19:18 -06:00
Brian Rose
a7c5a2e65d
Fix up implementation of reconfirmable.
2011-08-30 22:19:17 -06:00
mandaryn
10ac4dbc35
reconfirmable uniqueness validations
2011-08-30 22:19:17 -06:00
mandaryn
6469cbc62a
renamed confirmation_on_email_change property to reconfirmable and added reconfirmable explanations
2011-08-30 22:19:17 -06:00
mandaryn
1961de6b5d
Add email confirmation when it is changed by a user
2011-08-30 22:19:17 -06:00
José Valim
ef4eb47d50
Release v1.4.3 with improve Rails 3.1 compatibility.
2011-08-30 14:35:19 +02:00
José Valim
295088f9e8
Depend on latest Rails.
2011-08-30 14:33:23 +02:00
José Valim
4222afe3c7
Tidy up latest commits, update CHANGELOG.
2011-08-30 10:50:40 +02:00
José Valim
79d89a3c20
Merge pull request #1297 from seanski/master
...
Patch for Issue 1259 -- New
2011-08-30 01:44:30 -07:00
Sean Hill
8ad414b217
Added a helper to look for an modifying migration. If one is found during :revoke, the modifying migration is deleted. If the modifying migration is not found, the creating migration is deleted.
2011-08-29 17:53:32 -05:00
José Valim
7b1418be3b
Improve the regexp a bit more.
2011-08-29 14:55:56 +02:00
José Valim
7396c6911d
Quack, quack, quack. Use duck typing instead of hardcoding everything, closes #1281 .
2011-08-29 14:40:49 +02:00
José Valim
673c707085
Update CHANGELOG.
2011-08-29 14:31:09 +02:00
José Valim
f21d05a235
Only generate helpers for the used mappings, closes #1288
2011-08-29 14:29:38 +02:00
José Valim
1dd19c1a72
Wrap :actions constraints in the proper hash, closes #1280
2011-08-29 13:29:30 +02:00
José Valim
a8d9695324
Simplify regexp and ensure it runs against UTF8 chars, closes #1235
2011-08-29 13:15:40 +02:00
Sean Hill
99d539b9a7
Chagned the copy_devise_migration method to properly handle the :revoke behavior using @daf's commit: acf7e9e2ad as a guide.
2011-08-28 16:29:06 -05:00
Sean Hill
179cb2c88a
Changed the order of the devise_generator methods to create the model after the migration to properly use model_exists?, and I added tests to prove the generator works.
2011-08-28 16:02:58 -05:00
Sean Hill
9629da863d
Added a template to create a migration when the model already exists. Changed the generator code to check if model exists, and if it does, call the new template instead of the standard template.
2011-08-25 07:05:19 -05:00
José Valim
4f76e6f577
Depend on latest bcrypt.
2011-08-25 13:22:48 +02:00
José Valim
0f3cef4091
Merge pull request #1282 from apocalyptiq/master
...
Allow to set default 'from' header of Devise mails in custom mailer class
2011-08-20 13:48:45 -07:00
Szymon Przybył
7665cbf21d
Allow to set default 'from' header of Devise mails in custom mailer class
2011-08-20 22:35:47 +02:00
José Valim
b9413ab316
Merge pull request #1275 from bquorning/it's_not_"it's",_it's_"its"
...
Fix usage of “its” / “it’s” in documentation
2011-08-16 15:20:01 -07:00
Benjamin Quorning
a3bff7d6a2
Fix usage of "its" / "it's" in documentation
2011-08-16 22:15:25 +02:00
José Valim
7e54dc7903
Edited lib/devise/models/lockable.rb via GitHub
2011-08-16 08:00:44 -07:00
José Valim
fb1220af97
Merge pull request #1264 from invisiblefunnel/master
...
Fixes small typo in routes documentation
2011-08-11 20:40:25 -07:00
Daniel Whalen
282c7e85ec
Fix documentation typo
2011-08-11 20:16:20 -07:00
José Valim
bc15bb53dc
Merge pull request #1261 from rumblestrut/patch-1
...
Changed "It's composed of 12 modules:" to "It's comprised of 12 modules .
2011-08-10 22:20:08 -07:00
Eric J. Gruber
a729e059de
Changed "It's composed of 12 modules:" to "It's comprised of 12 modules ..." Comprised is the better word choice in this instance, meaning "Consist of; be made up of."
2011-08-10 21:46:52 -05:00
José Valim
7c628f7689
Merge pull request #1237 from novalis/master
...
friendly_token should be friendlier
2011-08-10 17:25:06 -07:00
David Turner
6d65c28f1f
remove hard-to-distinguish characters from friendly_token
2011-08-10 12:44:30 -04:00
José Valim
31e4ef5e4b
Merge pull request #1258 from wildchild/master
...
Don't require explicit scope in authenticate router extension
2011-08-10 05:23:29 -07:00
Alexander Uvarov
d38341b5e0
Don't require explicit scope in authenticate router extension
2011-08-10 15:41:06 +06:00
Rafael Mendonça França
ff90d9da9c
Merge pull request #1251 from michaelklishin/patch-1
...
Re-add JRuby to the build matrix
2011-08-08 08:01:41 -07:00
Michael Klishin
84c62ed034
Re-add JRuby to the build matrix
...
We hopefully resolved our JRuby woes on travis-ci.org.
2011-08-07 20:55:59 +04:00
José Valim
e76ba05516
Merge pull request #1249 from ches/mongoid-fixes
...
Tests that should no longer exclude Mongoid
2011-08-06 08:21:48 -07:00
José Valim
90d99b16f1
Merge pull request #1250 from ches/unenforced-auth-keys
...
Fix optional enforcement of particular authentication keys
2011-08-06 08:20:30 -07:00
Ches Martin
3cedba1de8
Fix optional enforcement of particular authentication keys
...
Documentation states that authentication_keys should accept a hash with
values indicating whether or not each key is required. This was added in
b2066cc2 but tests only covered request_keys, and 29afe2d2 later broke
it with a << array operator.
2011-08-06 20:07:49 +07:00
Ches Martin
ccbf26be0a
Tests that should no longer exclude Mongoid
2011-08-06 19:28:19 +07:00
José Valim
6448490de5
Edited lib/generators/templates/devise.rb via GitHub
2011-08-05 20:45:39 +03:00
José Valim
98651dae9d
Merge pull request #1241 from dbloete/patch-1
...
Speed up tests by defaulting to 1 stretch in test env
2011-08-05 10:43:54 -07:00
José Valim
bf57ef400d
Merge pull request #1247 from michaelklishin/patch-1
...
It is #rbxday, lets test against Rubinius 2.0 preview, too
2011-08-05 09:36:31 -07:00
Michael Klishin
27cae04446
It is #rbxday, lets test against Rubinius 2.0 preview, too
2011-08-05 20:34:33 +04:00
José Valim
430eadc1b2
Merge pull request #1245 from michaelklishin/patch-1
...
Disable testing against JRuby, it has known issues on travis-ci.org.
2011-08-05 09:31:36 -07:00
Michael Klishin
e954737a92
Disable testing against JRuby, it has known issues on travis-ci.org.
...
We will figure out JRuby issues with the JRuby core team and let you know
2011-08-05 16:26:11 +04:00
José Valim
191d5222e7
Merge pull request #1244 from ches/docs
...
Doc tweaks
2011-08-05 05:22:24 -07:00
Ches Martin
e77af4b40f
Doc: DB authenticatable schema no longer includes salt
2011-08-05 20:13:01 +08:00
Ches Martin
da3c47259d
Doc: DB authenticatable schema no longer includes salt
2011-08-05 17:33:50 +07:00
Ches Martin
c95575b284
Doc: DatabaseAuthenticatable still uses pepper option
2011-08-05 17:08:26 +07:00
José Valim
7a5086a2be
Merge pull request #1242 from ches/mongoid-fixes
...
Fix failing Mongoid tests
2011-08-04 13:38:57 -07:00
Ches Martin
c3a665320e
Merge branch 'master' into mongoid-fixes
...
* master:
Untrack Gemfile.lock
Conflicts:
Gemfile.lock
2011-08-05 03:19:05 +07:00
Dennis Reimann
372dfecf05
Added a comment about the stretch change
2011-08-04 23:00:12 +03:00
Dennis Reimann
68bd6809a7
Speed up tests by defaulting to 1 stretch in test env
2011-08-04 22:50:06 +03:00
Ches Martin
7bfdd07a71
Initializer caveats warning for Mongoid < 2.1
2011-08-05 02:41:31 +07:00
Ches Martin
6bc93173f1
Restore forlorn Mongoid generator tests
2011-08-05 02:40:42 +07:00
Ches Martin
55af9f8a40
Fix failing Mongoid tests
...
- attr_accessible not set for test user model, making Serializable tests
inaccurate
- Mongoid does not `include_root_in_json` by default, so enable this for
consistency with AR tests
- Mark tests pending for Mongoid < 2.1 that fail there due to known bugs
- Add `:mongoid` key for i18n model labels
- Remove outdated shim of `update_attribute` that caused mass assignment
security to be applied (ugh, that took awhile to find)
2011-08-05 01:38:42 +07:00
José Valim
866b35d27c
Merge pull request #1239 from ches/gemfile-lock
...
Untrack Gemfile.lock
2011-08-04 04:16:50 -07:00
Ches Martin
5374119f18
Untrack Gemfile.lock
...
Gemfile.lock is for app deployment, not public library development:
http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
2011-08-04 11:33:53 +07:00
José Valim
919404df53
Merge pull request #1228 from dasil003/master
...
Set up Recoverable to automatically confirm! if Comfirmable
2011-08-02 12:41:09 -07:00
Gabe da Silveira
fd07c74578
Refactor to use method and override
2011-08-02 12:08:38 -07:00
José Valim
560961e3fc
Merge pull request #1233 from asanghi/master
...
sign_in should return true and assert that. fixes #1232
2011-08-02 03:04:51 -07:00
Aditya Sanghi
873e49ab66
sign_in should return true in case user is already signed in and assert that.
2011-08-02 14:35:46 +05:30
José Valim
0f8f786f9f
Use a default key on inactive reason.
2011-08-02 11:18:23 +03:00
José Valim
7b3e267729
Merge pull request #1231 from hck/master
...
added I18n support to inactive_message in RegistrationsController
2011-08-02 01:14:16 -07:00
hck
7264bb55b2
added I18n support to inactive_message in RegistrationsController
2011-08-02 08:11:25 +03:00
Gabe da Silveira
ed6dfed67f
Resetting password should confirm implicitly
2011-07-29 14:26:19 -07:00
Gabe da Silveira
3488066031
Spelling correction
2011-07-29 14:17:31 -07:00
José Valim
bc9ea93f50
Merge pull request #1224 from gtalton/patch-2
...
Edited lib/devise/rails/routes.rb via GitHub
2011-07-29 03:18:40 -07:00
Gerald Talton
1920b79a0d
Edited lib/devise/rails/routes.rb via GitHub
2011-07-28 15:23:23 -05:00
José Valim
9131570703
Merge pull request #1221 from hazah/master
...
Change :except to :only for registration routes
2011-07-26 10:45:36 -07:00
=
770c1a973f
Changed :except to :only for devise_registration method of the routing mapper.
2011-07-26 13:42:00 -04:00
José Valim
b7b21a0b72
Merge pull request #1211 from mathieuravaux/master
...
Issue #1206 fix ((TokenAuthenticatable#params_auth_hash behavior)
2011-07-25 05:11:26 -07:00
Mathieu Ravaux
4d91fb4910
Untangled the logic in Devise::Strategies::TokenAuthenticatable#params_auth_hash
2011-07-25 09:10:25 +02:00
Rafael Mendonça França
4ce9d6f29a
Merge pull request #1212 from mattupstate/patch-1
...
Typo in doc comment
2011-07-23 15:06:02 -07:00
Matt Wright
d2a4c503f7
Typo in doc comment
2011-07-23 15:03:10 -07:00
Mathieu Ravaux
a2700bc17f
Fixed issue #1206 : TokenAuthenticatable#params_auth_hash behaving in an unexpected way for the authentication token lookup
2011-07-23 17:45:45 +02:00
José Valim
0a04d73883
Merge pull request #1198 from andriytyurnikov/issue_1197
...
div instead of p in forms
2011-07-14 05:47:46 -07:00
Andriy Tyurnikov
502dae3c1f
div instead of p in forms
2011-07-14 15:43:10 +03:00
José Valim
e9c766277d
Merge pull request #1194 from waynn/patch-1
...
quick typo fix
2011-07-11 11:37:18 -07:00
Waynn Lue
762f3907fa
quick typo fix
2011-07-11 11:30:52 -07:00
José Valim
3698b64a10
Merge pull request #1190 from joliss/whitespace
...
Remove whitespace from generator template
2011-07-08 11:25:35 -07:00
Jo Liss
2a6c160d39
Remove whitespace from generator template
2011-07-08 18:41:16 +02:00
José Valim
795754cd60
Merge pull request #1189 from netmute/master
...
Add ability to override redirect_to path after account confirmation.
2011-07-08 03:27:21 -07:00
Simon Ernst
517343ddb5
Add ability to override redirect_to path after account confirmation.
2011-07-08 11:21:01 +02:00
Rodrigo Flores
90a5e2f9af
Added rdoc on the Gemfile
2011-07-02 01:33:34 -03:00
Rodrigo Flores
93180fbb6d
Removed a rdoc deprecation warning
2011-07-01 20:37:21 -03:00
José Valim
04cb78947a
Edited CHANGELOG.rdoc via GitHub
2011-07-01 04:23:31 -07:00
José Valim
5423f2d5cb
Properly deprecate setup_mail
2011-07-01 04:23:12 -07:00
José Valim
51d15b7293
Add more missing :require => true
2011-06-30 15:29:35 -03:00
José Valim
7a2e018df8
Release 1.4.2.
2011-06-30 15:20:13 -03:00
José Valim
1fd4beb18a
Move simple_form_for directories to a new location.
2011-06-30 15:09:54 -03:00
José Valim
33d7644b4f
Provide a more robust behavior to serializers and add :force_except option
2011-06-30 10:43:33 -03:00
José Valim
5a98e4f4e8
Temporary fix for 3-1-stable that does not implement key? on cookie jar, closes #1179
2011-06-30 08:04:32 -03:00
José Valim
82ae53dd75
Released v1.4.1.
2011-06-29 20:26:35 -03:00
José Valim
07db04e773
Work around AR that does not call serializable_hash on to_xml.
2011-06-29 20:18:10 -03:00
José Valim
6a8ee475fd
This was fixed in mongoid, closes #770 .
2011-06-29 20:18:10 -03:00
José Valim
767a7a7c21
Ensure handle_unverified_request clean up any cached signed-in user
2011-06-29 20:18:10 -03:00
José Valim
a3b56f7eb1
Merge pull request #1175 from jhllnd/patch-1
...
Added :registerable to the examples
2011-06-28 04:58:51 -07:00
jhllnd
5e1a998cde
Added :registerable to the examples
2011-06-28 03:19:00 -07:00
José Valim
219fbc0056
Fix tests, remove whitespace and update CHANGELOG.
2011-06-28 07:05:35 -03:00
José Valim
dcee6413f4
Merge pull request #1173 from zedtux/master
...
Internationalization of resource_name in DeviseHelper#devise_error_messages!
2011-06-28 02:58:15 -07:00
Guillaume Hain
e2895239d8
Internationalization of resource_name in DeviseHelper#devise_error_messages!
2011-06-27 20:31:03 +02:00
José Valim
c8077c8d9f
Add more docs to routes.
2011-06-27 13:04:40 -03:00
José Valim
46c2d5a8f2
Update CHANGELOG.
2011-06-27 12:16:06 -03:00
José Valim
adb127bb3e
Default to delete on new templates.
2011-06-27 12:15:23 -03:00
José Valim
42f0285278
Extract mailer functionality, closes #1164
2011-06-27 12:13:00 -03:00
José Valim
13ef23f517
Add simple form generators.
2011-06-27 11:50:28 -03:00
José Valim
0bf28b19ab
Simple use hook_for.
2011-06-27 11:31:29 -03:00
José Valim
29a0af78bc
Refactor view generators.
2011-06-27 11:22:44 -03:00
José Valim
cf487c771e
Merge pull request #1172 from bjnord/format-false
...
More transparent implementation of :format => false
2011-06-27 05:15:05 -07:00
Brent J. Nordquist
7e711089a8
More transparent implementat'n of :format => false
...
Per josevalim, by setting {:format => false} in @scope[:options],
Rails will pick it up, without the need to alter each devise_*()
method individually.
2011-06-27 06:51:04 -05:00
Brent J. Nordquist
1c81a40a76
Support options[:defaults] and @scope[:defaults]
...
similar to support for :constraints
2011-06-26 19:48:20 -05:00
Samuel Cochran
2b64c6d951
Make all controllers inherit from a single DeviseController
2011-06-25 03:34:13 +08:00
Rodrigo Flores
dba8f91f99
\o/ Bumping to 1.4.0 \o/
2011-06-23 09:53:05 -03:00
José Valim
8e70e71143
Update CHANGELOG.
2011-06-23 09:42:32 -03:00
José Valim
f43a7c4f24
Merge pull request #1147 from sj26/master
...
Authenticated Route Constraints
2011-06-23 05:29:17 -07:00
José Valim
4e56d92ed8
Override serializable_hash instead of to_xml and to_json.
2011-06-23 09:25:50 -03:00
José Valim
5645d733ba
Update CHANGELOG.
2011-06-23 09:22:30 -03:00
José Valim
42b07f1f47
Merge remote branch 'origin/issue_json_response'
...
Conflicts:
app/controllers/devise/passwords_controller.rb
2011-06-23 09:16:04 -03:00
Samuel Cochran
e75354b3b0
Tests.
2011-06-23 10:44:46 +08:00
Samuel Cochran
80122856c4
Switch to Warden::Proxy#authenticate?
...
Warden::Proxy#authenticated? and Warden::Proxy#unauthenticated? don't try strategies first.
2011-06-23 10:44:23 +08:00
Rodrigo Flores
308238ab42
Not responding the object on creating unlockable requests
2011-06-22 23:04:55 -03:00
Rodrigo Flores
e937cf78cf
Added a test for empty json on unlockable controller response
2011-06-22 23:00:15 -03:00
Rodrigo Flores
2ae2fdc9f8
Returning an empty JSON for creating confirmation requests
2011-06-22 21:27:20 -03:00
Rodrigo Flores
3184834d72
Added tests for confirmable
2011-06-22 21:26:32 -03:00
Rodrigo Flores
8ef5534d92
Moved the test to after the XML tests
2011-06-22 21:04:50 -03:00
Rodrigo Flores
41bb96be5d
Returning empty json and empty xml
2011-06-22 19:38:21 -03:00
Rodrigo Flores
b37055fa47
Added a test to return empty json
2011-06-22 19:38:21 -03:00
José Valim
515b727f52
Change default rake.
2011-06-22 15:39:50 -03:00
José Valim
77d6d1e8c2
Do not try to authenticate with no_input_strategies are empty.
2011-06-22 15:28:49 -03:00
José Valim
04b614ce10
Edited app/controllers/devise/passwords_controller.rb via GitHub
2011-06-22 11:03:08 -07:00
José Valim
62e11ddbe4
Update CHANGELOG.
2011-06-22 13:07:19 -03:00
Rodrigo Flores
8e3ab5921f
Merge branch 'paranoid-mode'
2011-06-22 12:57:37 -03:00
Rodrigo Flores
1d87997647
Improved paranoid mode generator explanation
2011-06-22 12:52:11 -03:00
Rodrigo Flores
b58e0ef991
Removed useless blank lines
2011-06-22 12:52:11 -03:00
Rodrigo Flores
db959da247
Added a commented line for paranoid mode on generator
2011-06-22 12:52:11 -03:00
Rodrigo Flores
6199252011
Refactored paranoid mode actions for it to appear once
2011-06-22 12:52:11 -03:00
Rodrigo Flores
40c0a7b50b
Added paranoid mode to lockable
2011-06-22 12:52:11 -03:00
Rodrigo Flores
422bc4aaa6
Added tests for lockable
2011-06-22 12:52:11 -03:00
Rodrigo Flores
225c89fbf1
Paranoid mode on confirmable
2011-06-22 12:52:10 -03:00
Rodrigo Flores
76281ff15c
Added tests for paranoid mode on confirmable
2011-06-22 12:52:10 -03:00
Rodrigo Flores
8b54ff699f
Refactoring passwords controller
2011-06-22 12:52:10 -03:00
Rodrigo Flores
7d160650b8
Using the same url in success and failure
2011-06-22 12:52:10 -03:00
Rodrigo Flores
803e46cda7
Refactoring the paranoid controller
2011-06-22 12:52:10 -03:00
Rodrigo Flores
004fe2ad12
Paranoid mode for recoverable
2011-06-22 12:50:34 -03:00
Rodrigo Flores
09baf2091e
Refactored the tests to use swap
2011-06-22 12:50:34 -03:00
Rodrigo Flores
135a94b4f7
Added a test for the paranoid mode on recoverable
2011-06-22 12:50:34 -03:00
José Valim
a41d185768
Merge pull request #1158 from crx/validate_after_failing_pw_change
...
Run validations even when password change will fail
2011-06-22 02:28:06 -07:00
Chase DuBois
c3432e57b1
Test for previous commit
2011-06-21 20:45:07 -04:00
Chase DuBois
a8d88d193e
Run validations even when password change will fail, to show a complete list of errors
2011-06-21 17:55:32 -04:00
Samuel Cochran
471e4d6e72
Oh hey, Warden has API for this. Should probably match the name, too.
2011-06-21 08:36:06 +08:00
Samuel Cochran
14fec4cfb3
Add #authenticated and #not_authenticated route constraints
2011-06-18 15:53:46 +08:00
José Valim
4bcd1c6fcd
Add script so we can skip mongoid tests.
2011-06-17 11:04:15 -03:00
José Valim
84e1a89c44
Fix failing tests.
2011-06-17 10:46:39 -03:00
José Valim
e0162df465
Merge pull request #1145 from macmartine/master
...
Added support for Devise routes to honor constraints.
2011-06-17 06:27:05 -07:00
Mac Martine
7631456047
Added support for Devise routes to honor constraints.
2011-06-16 21:24:20 -07:00
José Valim
2bc51ab2bd
Merge pull request #1143 from joshk/patch-1
...
the script section in the travis yml isn't needed
2011-06-16 08:21:45 -07:00
Josh Kalderimis
d23ecef831
the script section in the travis yml isn't needed as this is the default behavior
2011-06-16 07:44:50 -07:00
José Valim
c0017ce76d
Merge pull request #1138 from fschwahn/update_without_password
...
added update_without_password method, closes #801
2011-06-15 10:45:18 -07:00
José Valim
30f9da9d71
Update CHANGELOG.
2011-06-10 11:14:08 +02:00
José Valim
e242ca0937
Fix failing tests.
2011-06-10 11:10:56 +02:00
José Valim
17596b0dc6
Merge pull request #1126 from swrobel/master
...
Add option to strip extra whitespace from emails or other fields
2011-06-10 01:45:43 -07:00
Stefan Wrobel
8e87a2d80d
Add strip_whitespace_keys which works like case_insensitive_keys but strips whitespace from emails
2011-06-10 01:37:43 -07:00
José Valim
4964f53a42
Merge pull request #1092 from xavier/filterwhitelist
...
Conditional string conversion of auth params (Closes #1079 )
2011-06-08 08:39:53 -07:00
José Valim
6250fa8529
Revert "Merge pull request #1103 from Mab879/master"
...
This reverts commit 944e1c0378 , reversing
changes made to 97659a1193 .
2011-06-08 17:37:49 +02:00
José Valim
944e1c0378
Merge pull request #1103 from Mab879/master
...
Controller Generator
2011-06-08 08:34:07 -07:00
Matthew Burket
4f446241a4
Added Controller Generator and tests to go along with it.
2011-05-30 23:07:20 -05:00
José Valim
97659a1193
Merge pull request #1099 from paulbellamy/master
...
Changing references to SecureRandom in generators and encryptable_test
2011-05-28 07:52:09 -07:00
Paul Bellamy
0bcf71f8df
Rails has removed SecureRandom from ActiveSupport in Rails 3.2,
...
deprecated
* Changing references in generators and encryptable_test
2011-05-28 14:44:54 +01:00
Xavier Defrang
ab3bb9cf4d
Conditional string conversion of auth params ( Closes #1079 )
2011-05-26 15:45:03 +02:00
José Valim
69126a31db
Merge pull request #1052 from Thibaut/email-validation
...
Don't validate email format and uniqueness unless it's changed
2011-05-26 05:24:45 -07:00
José Valim
03e3803cff
Merge pull request #1089 from skojin/master
...
support for named/dedicated openid
2011-05-24 13:33:32 -07:00
Sergey Kojin
58f8c7c613
support for named omniauth open_id strategies
2011-05-25 00:15:24 +04:00
José Valim
acd1c76c3b
Merge pull request #1087 from eMxyzptlk/patch-2
...
Rails has removed SecureRandom from ActiveSupport in Rails 3.2, deprecated
2011-05-23 23:49:59 -07:00
Wael Nasreddine
4c8cc5e3f3
SecureRandom is available since Ruby 1.8.7, remove the unnecessary defined? check.
2011-05-24 08:29:15 +02:00
Wael Nasreddine
72bb33f962
Rails has remove SecureRandom from ActiveSupport in Rails 3.2, deprecated in 3.1
...
Since it has been deprecated, this patch favors SecureRandom on ActiveSupport::SecureRandom
2011-05-23 15:34:09 -07:00
José Valim
2e61e52520
Fix failing test.
2011-05-23 18:22:32 +02:00
José Valim
75490d0375
Merge pull request #1085 from pechkin/master
...
Devise.mailer
2011-05-23 08:05:38 -07:00
Artem Pechenyi
0fbe4cb6b9
fix reference storage to support new and old class cache api
2011-05-23 17:29:10 +03:00
José Valim
d2b3f49384
Merge pull request #1067 from naomik/master
...
added ability to override redirect_to path after sending reset password instructions
2011-05-20 11:12:35 -07:00
José Valim
136992b8df
Merge pull request #1070 from joshk/filter_auth_params_fix
...
dup the conditions hash before calling filter_auth_params, this fixes an
2011-05-20 11:07:34 -07:00
José Valim
a130f848f2
Let's run on rubinius again.
2011-05-18 14:13:33 -04:00
Josh Kalderimis
e10bc9e3c0
dup the conditions hash before calling filter_auth_params, this fixes an issue with reseting your password when using a custom auth field like login
2011-05-16 14:08:22 -04:00
naomi
d56741ca4f
added ability to override redirect_to path after sending reset password instructions
2011-05-13 11:39:11 -05:00
Thibaut
92c9ed2d6c
Don't validate email format and uniqueness unless it's changed.
2011-05-07 19:02:44 +02:00
José Valim
50a5ad54ce
Merge pull request #1051 from rymai/patch-1
...
Remove :anybody_signed_in? from the controller helpers
2011-05-06 02:59:59 -07:00
Rémy Coutable
9dcb44ba61
:anybody_signed_in? helper was deprecated in 73669e09c8 and removed in fe5ef25614 but not removed from the #helper_method call.
2011-05-06 02:46:23 -07:00
fabian
8bdc4b544f
added update_without_password method
2011-05-05 09:24:21 +02:00
José Valim
e763f843c4
Tests pass on 3.0.7
2011-05-04 19:24:11 +02:00
José Valim
b5732e31c6
Bump to 3.0.7.
2011-05-04 19:24:11 +02:00
José Valim
ea24ffdd51
Merge pull request #1046 from fschwahn/do-not-follow.
...
respect do not track headers in trackable
2011-05-04 06:29:52 -07:00
fabian
56f7fbf2d1
use 'devise.skip_trackable' instead of DNT headers
2011-05-04 15:21:12 +02:00
fabian
89b53ea39c
respect do not track headers in trackable
2011-05-04 14:44:37 +02:00
Hugo Baraúna
9cc69277bc
Fixes a little typo.
2011-04-29 11:26:12 -07:00
José Valim
7e79ed6d4e
Update CHANGELOG.
2011-04-29 14:17:33 +02:00
José Valim
b5190d8df2
Refactor.
2011-04-29 14:11:47 +02:00
José Valim
b03c93c4fe
Merged pull request #1041 from ecarnevale/master.
...
fix for issues #999 : HTTP_ACCEPT=*/* should redirect to the default location
2011-04-29 05:03:50 -07:00
Emanuel Carnevale
8e12ddf7ed
fix for issues #999 : HTTP_ACCEPT=*/* should redirect to the default location
2011-04-29 13:22:52 +02:00
José Valim
4fd866d113
User cannot access sign up and similar pages if he is already signed in through a cookie or token, closes #1036 .
2011-04-29 08:56:57 +02:00
José Valim
a59410a254
password_required? should not affect length validation, closes #1037 .
2011-04-29 08:33:33 +02:00
José Valim
b1a27ad633
Allow controllers to be given as symbols.
2011-04-25 10:00:28 +02:00
Chase DuBois
4a3ad7f348
Use updated Mongoid gem and remove #destroyed?
2011-04-25 15:50:00 +08:00
Chase DuBois
89e4ab8a45
Moved check against record deletion into forget_me! method in model; added unit test.
2011-04-25 15:49:59 +08:00
Chase DuBois
fd8e34650e
Make copy of resource only for update action
2011-04-25 15:49:59 +08:00
Chase DuBois
e26c8ce499
Use #persisted? instead of #frozen? to check whether #forget_me should attempt to clear remember token from database
2011-04-25 15:49:59 +08:00
José Valim
64cf8a4534
Update CHANGELOG.
2011-04-21 19:20:48 +02:00
José Valim
ae976f60ca
Mark the token as expired, because invalid gives no clue of what to do next.
2011-04-21 19:17:33 +02:00
José Valim
f152860bc5
Update CHANGELOG.
2011-04-21 14:00:47 +02:00
José Valim
40153b7422
Add tests to previous commit.
2011-04-21 13:56:10 +02:00
Alexander Dreher
fdfe6a8340
Fixes error on missing reset_password_sent_at column.
...
If the column is not present, you are unabled to reset your password.
2011-04-21 19:51:12 +08:00
Carlos Antonio da Silva
79c100008a
Remove old OmniAuth test helpers
2011-04-19 13:13:29 -03:00
José Valim
f132c7891b
Update CHANGELOG, bump to 1.4.0.dev.
2011-04-19 14:24:33 +02:00
José Valim
bdad984ace
Use Devise::Email::EXACT_PATTERN.
2011-04-19 14:22:14 +02:00
Rodrigo Flores
a229627a54
Removed failing test cases on e-mail validations
2011-04-19 20:16:20 +08:00
Rodrigo Flores
0b598cf132
Changed the e-mail validation regex
2011-04-19 20:16:19 +08:00
Rodrigo Flores
0e657eece1
Added email validation regexes
2011-04-19 20:16:19 +08:00
José Valim
b6cf1df659
Release 1.3.1.
2011-04-19 10:39:56 +02:00
José Valim
29afe2d21c
Other minor improvements in the REST code.
2011-04-19 08:36:52 +02:00
José Valim
a722c6236c
to_json does not guarantee the order.
2011-04-18 13:03:31 +02:00
José Valim
14aedc416a
Wording.
2011-04-18 10:03:39 +02:00
José Valim
9fe0cb4954
use @example.com
2011-04-18 10:00:00 +02:00
SixArm
2a5669967f
Change test email addresses to ues RFC 2606 reserved domain example.com
2011-04-18 15:59:13 +08:00
durrantm
13376d22de
Edited README.rdoc via GitHub
2011-04-18 15:58:40 +08:00
José Valim
6b21531916
Update CHANGELOG.
2011-04-18 09:56:44 +02:00
José Valim
4a4dcb30ef
sessions/new also responds to xml and json now
2011-04-18 09:56:24 +02:00
José Valim
2cfa58b433
Create shared_helpers for duplicated logic in Devise controllers and failure app.
2011-04-17 19:43:54 +02:00
José Valim
c6dd846718
Move the catch to the test level.
2011-04-17 19:37:19 +02:00
José Valim
7a2d76d002
Update changelog, improve coverage.
2011-04-17 18:06:29 +02:00
Andre Arko
e5a8febe3b
Change the XML error tag from <hash> to <errors>. Makes way more sense.
2011-04-17 23:54:06 +08:00
Steve Hodgkiss
60809719b8
Fix bug when the reset_password_sent_at field doesn't exist generate_password_token returns nil causing the token not to be saved.
2011-04-17 23:53:50 +08:00
José Valim
ee6a8ab93a
Temporarily remove rubinius because C extensions are not compiling.
2011-04-17 00:57:02 -07:00
Juan M. Cuello
c3d92095f8
Update README.
...
Replace success/failure with notice/alert in I18n section.
2011-04-17 15:15:49 +08:00
José Valim
460beae671
Release 1.3.0.
2011-04-16 13:31:50 +02:00
José Valim
fa6c8ab321
Use inflector to avoid conflicts.
2011-04-16 13:30:15 +02:00
José Valim
d02f86bef5
Update changelog.
2011-04-16 13:19:29 +02:00
José Valim
0d74c1b4f0
Move it to the junk drawer. :)
2011-04-16 13:18:28 +02:00
José Valim
8f3539c14f
Don't include the same module several times, closes #765 .
2011-04-16 13:16:47 +02:00
José Valim
3d5e692c2c
Update CHANGELOG.
2011-04-16 13:16:47 +02:00
Jack Dempsey
cb622e99d8
create new integration test file for flash related tests
2011-04-16 19:16:34 +08:00
Jack Dempsey
567d59e48a
update verbiage to be more concise
2011-04-16 19:16:33 +08:00
Jack Dempsey
f89f71262d
require_no_authentication now sets flash with I18n message
2011-04-16 19:16:33 +08:00
José Valim
5e2ee5eb6a
Downcase keys before validation.
2011-04-16 12:52:59 +02:00
José Valim
34a54dac2d
Simply check instead or rescueing.
2011-04-16 12:43:43 +02:00
Mikel Lindsaar
e329930a82
Update DatabaseAuthenticatable#valid_password? to not raise error on empty password
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-04-16 12:41:49 +02:00
José Valim
3940846d79
Update CHANGELOG.
2011-04-15 10:58:27 +02:00
José Valim
c608fbe89e
Rollback to require 'test_helper'. If you want to run it in isolation, do ruby -Itest path/to/test/file.
2011-04-15 10:48:44 +02:00
Matias Korhonen
8db00eedea
Bump the password maximum length to 128 characters.
2011-04-15 16:39:01 +08:00
John Wilger
0e904dda79
Make it possible to unit-test extensions to Devise::SessionsController
...
This time with tests
2011-04-15 16:37:15 +08:00
John Wilger
e4af6adaf7
Added test showing previously incorrect behavior of Devise::SessionsController#create
2011-04-15 16:37:15 +08:00
John Wilger
e1c7c49a0c
Fix test_helper require so file can be run individually
2011-04-15 16:37:14 +08:00
Hiroki Yoshioka
bd9f148d24
Allow to override the path after resending confirmation instructions.
2011-04-15 16:32:41 +08:00
José Valim
f009011179
Update docs.
2011-04-15 10:31:58 +02:00
Timo Schilling
5adb854aa5
add devise_for :only option
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-04-15 10:31:01 +02:00
José Valim
1f51524bae
Edited README.rdoc via GitHub
2011-04-11 01:26:36 -07:00
Casper Klenz-Kitenge
23f8dbed80
Removed notice about using Devise from the git repo, for OAuth support.
2011-04-11 16:24:39 +08:00
José Valim
140acfe4cc
Improve error message, closes #974 .
2011-04-09 22:52:31 +02:00
Jared Beck
cb2cb2cff7
more helpful message re: secret_token
2011-04-10 04:47:55 +08:00
José Valim
30300fc6b9
Add a test that ensures validation options work.
2011-04-09 22:47:06 +02:00
José Valim
de8982563a
Always use :erb.
2011-04-05 22:06:27 +02:00
Kim Joar Bekkelund
e7154b3af9
Add missing action to root_path in readme
...
On ruby-1.9.2-p136 I got the following error when using `root :to => "home"`:
actionpack-3.0.5/lib/action_dispatch/routing/mapper.rb:171:in `default_controller_and_action': missing :action (ArgumentError)
Specifying the action solves the problem.
2011-04-05 05:47:10 +08:00
Josh Kalderimis
39360dc419
lets have travis test against many rubies
2011-04-05 02:35:28 +08:00
José Valim
eeb61929ac
Be sure request.format is not nil (only reproducible in Rails < 3.0.4).
2011-04-04 07:04:32 -07:00
José Valim
56fd7031e5
Edited lib/generators/devise/views_generator.rb via GitHub
2011-04-04 02:48:41 -07:00
José Valim
425fe7f22d
Remove old autoload.
2011-04-01 02:42:06 -07:00
José Valim
ed51fc7636
Tidy up previous commits.
2011-03-30 15:35:38 +02:00
Jean-Daniel Guyot
d23a7ca8d5
Copy-paste error
2011-03-30 21:11:34 +08:00
Jean-Daniel Guyot
1b1dc2a429
typo
2011-03-30 21:11:34 +08:00
Jean-Daniel Guyot
be2aeee70f
Add reset_password_within configuration variable.
2011-03-30 21:11:33 +08:00
José Valim
8a3deb98cd
Add a descriptive text for those upgrading.
2011-03-30 14:40:03 +02:00
José Valim
e4902143f8
Ensure configuration options are allowed exactly after each module is included.
2011-03-30 14:33:56 +02:00
José Valim
d3a374777b
Update CHANGELOG
2011-03-30 14:10:59 +02:00
José Valim
5b94d9b803
Refactor a bit navigational format responses, to not call to_sym and reuse the request_format logic from FailureApp.
2011-03-30 14:09:12 +02:00
Prem Sichanugrist
b6652abc7c
Add navigational_formats internal helper which filters out wildcard
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:43:57 +02:00
Prem Sichanugrist
97f0bacfa0
Add support for non-navigational formats in PasswordsController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:39:08 +02:00
Prem Sichanugrist
210bc6aa66
Add support for non-navigational formats in UnlocksController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:38:16 +02:00
Prem Sichanugrist
8170d5e340
Add support for non-navigational formats in ConfirmationsController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:38:00 +02:00
Prem Sichanugrist
6225902034
Add support for non-navigational formats in RegistrationsController
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:37:41 +02:00
Prem Sichanugrist
0487e9eafe
Add support for destory_user_session_path in another non-navigational formats such as JSON and XML
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-30 13:36:50 +02:00
José Valim
73669e09c8
Remove deprecations, bump to .dev and update template.
2011-03-28 21:26:53 +02:00
José Valim
da510508bb
Release 1.2.0
2011-03-25 15:53:59 +01:00
José Valim
02ae0c22ef
Update CHANGELOG.
2011-03-25 15:40:46 +01:00
José Valim
edee511cd1
Rename active? to active_for_authentication?
2011-03-25 15:40:46 +01:00
Jack Dempsey
fbd35ec332
new cache api requires passing a key to get
2011-03-25 06:38:26 +08:00
José Valim
30b35e3727
Fix syntax error.
2011-03-24 20:25:54 +01:00
Jack Dempsey
330cafd3d2
use reference if available otherwise ref
2011-03-25 03:16:41 +08:00
Jack Dempsey
fe9024218c
ref will be reference in 3.1
2011-03-25 03:16:40 +08:00
José Valim
0c9bd3259e
2011-03-23 10:21:11 -07:00
José Valim
b23e2e807a
Note about navigational formats.
2011-03-18 16:04:52 +01:00
José Valim
7876acf960
Oops, fix silly mistake.
2011-03-16 05:52:53 -07:00
José Valim
74166e224b
Faster uniqueness queries, closes #917
2011-03-15 12:53:17 +01:00
José Valim
cb778d033f
Squeeze "/"
2011-03-14 11:04:51 -07:00
José Valim
1bf7da148a
Properly ignore path prefix on omniauthable
2011-03-14 18:35:06 +01:00
José Valim
d58a72ee32
Remove stuff deprecated on .rc2
2011-03-14 11:22:09 +01:00
Vinicius Baggio
15d195d2f0
Fixing OmniAuth integration tests since now it has support for failure scenarios
2011-03-12 13:58:19 -03:00
José Valim
4f093574da
Release 1.2.rc2.
2011-03-11 20:56:50 +01:00
José Valim
64457e2c1f
Update to latest omniauth.
2011-03-11 20:55:36 +01:00
José Valim
3f4fb1a769
Improve previous patch.
2011-03-11 20:46:08 +01:00
gilles
1982ad9f57
fix for possible injection with mongo
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-03-11 20:24:24 +01:00
José Valim
569d205ca7
Gemfile.lock, Y U CHANGING?
2011-03-11 20:17:02 +01:00
José Valim
63b72cd512
Edited app/helpers/devise_helper.rb via GitHub
2011-03-06 05:25:09 -08:00
Michael Klaus
bb89ca4865
Added link to i18n wiki page.
2011-03-06 14:30:07 +08:00
José Valim
307fe6cb60
Revert two previous commits. Rails is broken, it needs to be fixed instead.
2011-03-02 10:13:38 +01:00
José Valim
fe2d7b5ffe
Don't cache variable otherwise reloading in development is busted.
2011-03-02 00:16:09 -08:00
Jan Xie
d445db9e5e
use Inflector#constantize to get class, compatible with rails edge commit 7b6bfe84f332a3c99656f73cf0251bce0a16ba88
2011-03-02 16:13:15 +08:00
Guilherme Silveira
e4cae200f4
simplifying comparisons (avoind too much negatives) and adding unit test cases
2011-02-27 15:14:02 +08:00
José Valim
a535b047ff
Add .travis.yml configuration.
2011-02-25 22:25:34 +01:00
Vinicius Baggio
aa81df261c
Warn about an incompatibility between Devise and Mongoid
2011-02-25 18:17:14 -03:00
Vinicius Baggio
0cc900e7cf
Reset lock attempts count when lock is expired. Closes #825
2011-02-25 17:59:27 -03:00
Vinicius Baggio
9bff1cf658
Fixing assertion in integration test
2011-02-25 14:57:49 -03:00
Vinicius Baggio
305059f573
Consider SCRIPT_NAME on omniauth url helper. Closes #876
2011-02-25 14:20:12 -03:00
José Valim
392e664036
Be sure to halt on failures, closes #856
2011-02-24 22:31:48 +01:00
José Valim
43a3431c3e
Add a test to ensure user.remember_me = true followed by a sign in sends the cookie, closes #776
2011-02-24 22:24:21 +01:00
José Valim
930d5874ca
Raise here instead of a warning.
2011-02-24 22:12:54 +01:00
José Valim
3375985ab8
Update CHANGELOG.
2011-02-24 21:58:51 +01:00
José Valim
2e43944567
Move rememberable back to a hook.
2011-02-24 21:55:52 +01:00
Vinicius Baggio
352edc024b
Cleaning up test helpers related to OmniAuth.
...
Developers should rely on OmniAuth's new testing API. Check
https://github.com/intridea/omniauth/wiki/Integration-Testing
for more details.
2011-02-24 16:50:22 -03:00
Vinicius Baggio
b5e289c9a8
Updating bson_ext gem version
2011-02-23 14:34:15 -03:00
Vinicius Baggio
42d002702c
Considering namespaces while generating the routes. Closes #682
2011-02-23 14:24:47 -03:00
Vinicius Baggio
6bd65209d5
Added a test case for Devise Generator
2011-02-23 14:24:47 -03:00
Vinicius Baggio
970457f2c2
Fixing test error when dealing with multiple time zones
2011-02-23 14:24:42 -03:00
Alexander Uvarov
bbaaefa995
Relax dependency on ActiveModel::Dirty
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-02-18 12:28:56 +01:00
Joey Aghion
fdf6a48a7e
Custom failure apps no longer ignored in test mode.
2011-02-18 15:53:04 +08:00
José Valim
7113beac81
Bring back behavior for < 3.0.4.
2011-02-16 20:59:58 +01:00
José Valim
0c5acc6f38
Update CHANGELOG.
2011-02-15 11:35:24 +01:00
José Valim
dd721f1857
Use secure compare as well.
2011-02-15 11:33:54 +01:00
José Valim
ae75186c52
Update CHANGELOG.
2011-02-15 10:59:41 +01:00
José Valim
ca293d17ba
Implement Rails' handle unverified request.
2011-02-15 10:58:38 +01:00
José Valim
add8f8a203
Works on 3.0.4.
2011-02-15 10:27:34 +01:00
José Valim
6a6ed6702e
Improve tests and update CHANGELOG.
2011-02-15 10:07:08 +01:00
Nate Todd
2d0f887ba7
Preventing timeoutable from interfering with stateless tokens.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-02-15 09:54:13 +01:00
José Valim
3109b0924b
Remove --haml and --slim views from Devise.
2011-02-15 09:49:11 +01:00
José Valim
bbafb70655
Update CHANGELOG.
2011-02-15 09:45:37 +01:00
José Valim
aac9c40cba
Ensure after hooks are called on registrations controller, closes #852
2011-02-15 09:41:35 +01:00
Jo Liss
f964ea526b
Skip test that fails with Mongoid.
...
The test suite passes now.
2011-02-10 23:00:14 +08:00
Jo Liss
bca43a7576
Require 'rails' in devise.rb.
...
This way we can require 'devise' without requiring 'rails' beforehand.
2011-02-10 23:00:13 +08:00
Jo Liss
8440ed0101
Make Devise::friendly_token 20 characters long.
...
This makes the tokens better suited for URLs in plain-text emails, and
is still secure for all practical purposes.
2011-02-10 21:42:58 +08:00
Jeffrey Jones
cb5e0c4a7b
Simplified logic for checking if the email is present and moved the Mongoid classes out of eval statements
2011-02-10 16:16:33 +08:00
Jeffrey Jones
0287d8cc80
When using database_authenticatable Devise will now only create an email field when appropriate.
...
(If using default authentication_keys or custom authentication_keys with email included)
Test written for Mongoid, not sure how to test for active_record yet.
2011-02-10 16:16:33 +08:00
José Valim
a48c815dc8
Update CHANGELOG.
2011-02-09 10:13:08 +01:00
José Valim
f332d7e932
Add a test to show recoverable works as expected if password is blank.
2011-02-09 10:11:48 +01:00
José Valim
a14b833581
Update Copyright years.
2011-02-09 00:02:54 -08:00
Carlos Antonio da Silva
c9fe8885f9
Spaces
2011-02-06 19:23:36 -02:00
Carlos Antonio da Silva
e1c3b915e7
Remove require to rake and devise version from Rakefile
2011-02-06 19:19:28 -02:00
Nico Ritsche
f06bed279a
corrected 'an user' to 'a user' in comments and docs
2011-02-06 23:46:49 +08:00
Julien Desrosiers
3fd206c591
update README to add ruby_parser as a dependency for generating the Haml templates
2011-02-06 03:06:57 +08:00
John Plummer
7a1852e9f5
Allow send confirmation to change keys used
2011-02-05 16:19:01 +08:00
José Valim
76a4800446
Words.
2011-01-31 15:16:58 +01:00
José Valim
5f93d8355c
A tip for newcommers.
2011-01-31 14:06:35 +01:00
Carlos Antonio da Silva
1f8909458f
Fix typo
2011-01-26 22:26:40 -02:00
José Valim
68f699bfd4
Do not change default behavior of previous apps.
2011-01-21 10:55:40 +01:00
José Valim
0615c0a0a4
Fix infinite redirect issues. Closes #787 and closes #795 .
2011-01-20 09:22:41 +01:00
José Valim
c78bb68c66
Revert "Fix an issue causing infinite redirects in production, closes #720 "
...
This reverts commit a156576ce9 .
Conflicts:
lib/devise/controllers/internal_helpers.rb
2011-01-20 09:16:44 +01:00
José Valim
d018970c4b
Revert "Doh. Use respond_to :all."
...
This reverts commit 555435e6fe .
2011-01-20 09:14:38 +01:00
Jo Liss
971f68f97d
README: Call the Google Group a mailing list; merge Testing section into Contributing; minor fixes for consistency.
2011-01-16 01:35:53 +08:00
Jo Liss
4207c2321f
Fix the module sorting in devise method.
2011-01-15 07:38:06 +08:00
Jo Liss
54dc82ad25
Generate add_index for :authentication_token (used by :token_authenticatable).
2011-01-15 06:42:30 +08:00
Jo Liss
fa239b984a
Do not silently ignore invalid modules passed to devise method in model.
...
The & operator seemed to be only used to force sorting, but as a
side effect we got suboptimal error handling.
2011-01-15 06:42:29 +08:00
Jo Liss
692f7b27ff
typos (remaining instances of authenticable -> authenticatable)
2011-01-13 13:02:17 +08:00
Jo Liss
258eb1c7e6
Move config.pepper from encryptable into database_authenticatable section in the initializer.
...
config.pepper is used by both database_authenticatable and encryptable,
but encryptable requires database_authenticatable anyway, so it makes
more sense to have it in the database_authenticatable section.
2011-01-13 13:02:17 +08:00
Jo Liss
aa61034d40
Add Testing section to README (issue #766 ).
2011-01-13 13:02:16 +08:00
Jo Liss
42f2196d01
Rakefile: exit on failing test
...
And the world can always use more snark. ;-)
2011-01-12 00:53:47 +08:00
vagmi
d87521723d
fix create_haml_views. see issue 761 for details
...
accessing a variable before assigning causes nil exception
2011-01-11 19:06:48 +08:00
siong1987
6e91edd5e3
failure_app redirects to the correct format if it is a non-html request. This is to ensure that firefox redirects the correct format since firefox doesn't inherit accept info. also fix issue 675 that is resurrected by issue 754.
2011-01-11 18:27:14 +08:00
Andrés Mejía
fb4ec6e9da
Fixing parameters for _omniauth_authorize_path method after short-circuiting it.
2011-01-08 02:37:05 +08:00
José Valim
7ff0231ab7
Don't pass options forward, this fixes uncaught warden error. Unfortunately could not write a test for it, although easily reproducible in Rails applications. Closes #754
2011-01-03 16:25:23 +01:00
Carlos Antonio da Silva
3f086656aa
Fix RegistrationsController routes comments
2011-01-02 20:17:48 -02:00
Carlos Antonio da Silva
55cb7195b8
Implicit self
2011-01-02 20:13:37 -02:00
José Valim
555435e6fe
Doh. Use respond_to :all.
2010-12-30 14:49:15 +01:00
Richard Aday
88d4aca2c4
Adding tests for reset_password_keys and unlock_keys
2010-12-30 03:11:03 +08:00
Richard Aday
038eb321d4
Allowing reset_password_keys and unlock_keys to be set through the config
2010-12-30 03:10:56 +08:00
José Valim
c8c84c77c6
Respond to all formats if none is specified.
2010-12-29 16:01:11 +01:00
José Valim
8f20b13f84
By default, just require e-mail on recover and lockable.
2010-12-28 23:00:23 +01:00
José Valim
af1295284c
rememberable cookie now is httponly by default
2010-12-25 12:04:04 +01:00
JamesFerguson
1b43cb5203
Added assertion testing that remember_user_token cookie is flagged as HttpOnly.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-25 11:49:40 +01:00
José Valim
b34f456096
Invoke callbacks using the correct API
2010-12-25 11:41:14 +01:00
Josh Starcher
e95eb93eb7
added failing test for Warden before_failure hooks
2010-12-25 18:21:20 +08:00
Josh Starcher
1a2590dc08
Warden before_failure hooks are an array, not a proc
2010-12-25 18:21:20 +08:00
José Valim
1cdb02bd54
More tiny fixes
2010-12-25 11:15:56 +01:00
José Valim
7759c8b3f3
Update CHANGELOG
2010-12-25 11:11:56 +01:00
José Valim
b32883a7c5
Small fixes in views generator
2010-12-25 11:07:52 +01:00
José Valim
27051cb2fe
responder formats should be inherited from ApplicationController
2010-12-25 11:04:39 +01:00
Prem Sichanugrist
e8e3df3891
Add support for non-navigational format response to SessionsController
...
This will make Devise::SessionsController return the authenticated object in the requested format instead of redirect the client to another page upon success authentication.
2010-12-25 17:57:15 +08:00
Fred Wu
2561cd4eac
Use an instance variale when removing the temp directories otherwise the create_haml_views method gets called twice.
2010-12-23 17:05:05 +08:00
Fred Wu
146090f86e
Added more clarification for the devise:views generator.
2010-12-23 17:05:05 +08:00
Fred Wu
4519364eaf
Added support for generating Slim view templates.
2010-12-23 17:05:03 +08:00
Uģis Ozols
f56c588a6a
Fix typo.
2010-12-23 15:48:03 +08:00
siong1987
379d8c69a5
Issue 675: recall option is now passed for not confirmed email and inactive account.
2010-12-23 02:24:26 +08:00
José Valim
13e8bc22e3
Move duplicate sign_in logic to sign_in().
2010-12-20 10:02:27 +01:00
José Valim
c27bc21af9
Update CHANGELOG.
2010-12-18 09:39:55 +01:00
José Valim
a156576ce9
Fix an issue causing infinite redirects in production, closes #720
2010-12-18 09:38:41 +01:00
José Valim
b942520dc4
No need to use expand_path as we assume the test directory is in the .
2010-12-18 08:22:01 +01:00
Andrés Mejía
a2e92a2ef2
Adding mongoid generator tests.
2010-12-18 15:15:43 +08:00
Andrés Mejía
60be68436b
Adding tests for Active Record generator
2010-12-18 15:15:43 +08:00
Andrés Mejía
fe4eaf2d12
Invoking the model generator even if the model exists but only when the behavior is :revoke (i.e. we are running 'rails destroy' instead of 'rails generate')
2010-12-18 15:15:42 +08:00
Andrés Mejía
845c186f48
Removing caching from #model_exists? so it doesn't return a false positive when the method is called, the file is deleted and then the method is called again.
2010-12-18 15:15:42 +08:00
José Valim
9f832d2cb2
Remove Jeweler.
2010-12-16 16:37:42 +01:00
José Valim
a23a52b2f7
Update dependencies versions.
2010-12-11 10:24:52 +01:00
Carlos Antonio da Silva
7ed1fb116f
Cleanup requires in generators tests, fixing issue with load error in Ruby 1.9.2
2010-12-09 23:52:30 -02:00
José Valim
b50fd1a72e
Fix e-mail regexp. Closes #698
2010-12-01 17:19:45 +01:00
José Valim
2305e8f8cf
Improve README.
2010-11-30 14:17:18 +01:00
José Valim
f2f9232b89
Fix typo.
2010-11-30 05:01:19 -08:00
José Valim
cb62597afa
Improve messages.
2010-11-30 12:23:09 +01:00
José Valim
089c316f37
Improve message.
2010-11-29 00:56:43 -08:00
José Valim
ec5bfe9119
Ensure to convert keys on indifferent hash.
2010-11-27 19:45:25 +01:00
José Valim
912969b5a0
Update CHANGELOG.
2010-11-27 08:10:44 -08:00
Gavin Hughes
fe5ef25614
Deprecate anybody_signed_in? in favor of signed_in?(nil)
2010-11-28 00:09:23 +08:00
José Valim
1d6944d201
Update gemspec with 1.2.rc release.
2010-11-26 12:19:22 +01:00
Carlos Antonio da Silva
268eae1013
Add update_attribute method to Mongoid Shim for devise tests, to fix failing test
...
Mongoid does not have this method in the current beta version (2.0.0.beta.20).
2010-11-26 01:14:27 -02:00
Carlos Antonio da Silva
eb7760b4b2
Make sure to load test gems only in Devise test env
2010-11-26 00:55:16 -02:00
Carlos Antonio da Silva
112f499937
Use UTC for Mongoid timestamps, so it conforms with AR.
2010-11-26 00:54:08 -02:00
Carlos Antonio da Silva
a582d4dca1
Configure Gemfile to use Rails 3.0.x. Also bump mongo related and webrat gem versions
2010-11-26 00:53:57 -02:00
José Valim
4977bd1222
Fix indifferent access on session issue.
2010-11-25 00:06:39 +01:00
Carlos Antonio da Silva
ed30114bd8
Fix changelog e cleanup white spaces
2010-11-21 11:25:37 -02:00
José Valim
71450998c5
Avoid session fixation attacks.
2010-11-20 23:18:41 +01:00
José Valim
6f205fe4c4
Tidy up.
2010-11-20 21:44:53 +01:00
Steve Ross
4a8f9a9ba8
set_flash_message: Added conditional to make certain flash entries are not set if message is blank.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-11-20 21:42:25 +01:00
José Valim
d8016ea3fd
Ensure namespaces has proper scoped views, closes #654
2010-11-20 21:41:26 +01:00
José Valim
6bfcbeffdd
Tidy up and update CHANGELOG.
2010-11-20 21:19:12 +01:00
José Valim
094790295c
Merge remote branch 'adahl/master'
2010-11-20 20:57:02 +01:00
Andrew Dahl
8d1e23c67d
add unit and integration tests for case insensitive keys
2010-11-20 15:54:01 +01:00
Andrew Dahl
e911abf13b
changed case_insensitive_keys config setting to an array and added downcasing of keys as a before filter on database authentication module
2010-11-18 23:29:53 +01:00
Andrew Dahl
26b1bc4107
Revert "remember to downcase on registration"
...
This reverts commit 0c0444c078 .
2010-11-18 22:28:23 +01:00
Andrew Dahl
0c0444c078
remember to downcase on registration
2010-11-18 21:58:00 +01:00
Andrew Dahl
94c666e439
first attempt
2010-11-18 21:24:42 +01:00
José Valim
67645c68f7
Move extra helpers names to the bottom.
2010-11-15 06:55:47 -08:00
Romain Pechayre
13968f49af
Updated README for better layout of modification of previous commit
2010-11-15 22:54:02 +08:00
Romain Pechayre
1b05d8c3bd
Updated README to remove unclarity about user autogenerated helper methods
2010-11-15 22:54:02 +08:00
Andrés Mejía
020f919dcd
Tpyo.
2010-11-15 18:35:15 +08:00
José Valim
b70b72b6b0
Rollback to use the regexp result.
2010-11-15 10:01:45 +01:00
Denis Hennessy
19219cbe0f
Fix for HTTP Basic Auth when base64 encoded string wraps
...
When using a token longer than approximately 45 characters, the base64 encoded string passed in
the HTTP_AUTHORIZATION header will contain newline characters. The existing implementation used
a regex which didn't handle this case correctly.
2010-11-15 16:40:39 +08:00
Robert Peters
32c6f7b00b
For #646 - modify the configuration text that is output for confirm_within so that it matches the actual default value. If you use nil as a value, it crashes trying to call nil.ago
2010-11-13 15:50:33 +08:00
José Valim
67a49f3b75
Ensure authenticatable_salt can be nil.
2010-11-11 22:51:39 +01:00
José Valim
14d772972d
No need to set a pepper in a bcrypt world.
2010-11-11 12:54:09 -08:00
José Valim
b2496d1bc1
Smallish updates.
2010-11-11 13:53:52 +01:00
José Valim
2d2c4c63be
Update gemspec.
2010-11-11 13:28:25 +01:00
José Valim
c7efb68a77
Devise does not intercept 401 returned from applications anymore
2010-11-09 23:42:14 +01:00
José Valim
2366530d55
Update CHANGELOG.
2010-11-09 23:31:35 +01:00
José Valim
505bd39700
failure_app now properly handles nil request.format
2010-11-09 23:30:53 +01:00
José Valim
07fedb4383
Merge branch 'omniauth'
2010-11-09 22:28:05 +01:00
José Valim
931b902583
Fix failing tests.
2010-11-09 22:27:46 +01:00
José Valim
835d1044ae
Fix a problem with IE7 headers.
2010-11-08 22:45:42 +01:00
José Valim
f49efdff13
Update Gemfile.lock.
2010-11-08 22:33:13 +01:00
José Valim
1f44c61d08
Improve error messages, closes #574
2010-11-06 08:54:03 +01:00
José Valim
ad8d2d7d99
Be more helpful in the already confirmed message, closes #613
2010-11-06 08:54:03 +01:00
José Valim
74edcb8bec
Add test/tmp/* to gitignore.
2010-11-06 08:54:03 +01:00
stJhimy
e8dd48c824
Added test for Devise::Generators::ViewsGenerator with scope
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-11-06 08:54:03 +01:00
stJhimy
0948334393
Added test for Devise::Generators::ViewsGenerators with no params
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-11-06 08:54:03 +01:00
stJhimy
3b1f1ea719
Added test for Devise::Generators::InstallGenerator
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-11-06 08:54:03 +01:00
Mike Gehard
9b468816dd
Add in some instructions for getting routes to a custom action on a Devise override controller
2010-11-06 15:52:29 +08:00
José Valim
4210499f7f
Improve error messages, closes #574
2010-11-05 10:08:38 -02:00
José Valim
2aeaf4b109
Be more helpful in the already confirmed message, closes #613
2010-11-05 10:03:52 -02:00
bUg
ab033ea986
fix for omniauth 0.2.0
2010-11-04 08:21:34 +08:00
David A. Cuadrado
09a46695f2
omniauth route should not add a ? if no param is given
2010-10-31 03:06:53 +08:00
David A. Cuadrado
bf19b15914
added open id support via omniauth
2010-10-31 03:06:52 +08:00
bUg
94622054de
tests for Devise::Mapping.find_by_path!
2010-10-30 08:57:14 +08:00
bUg
c429fe8d1c
fixed bug 'Could not find a valid mapping for path /users/auth/:provider/callback' when devise_for called inside scope
2010-10-30 08:57:13 +08:00
bUg
d8f33b8925
omniauth routes fix, see devise issue #600
2010-10-29 20:48:40 +08:00
José Valim
e30c0f3319
Do not automatically set filter_parameters.
2010-10-26 18:07:06 -02:00
José Valim
976d77defe
Add test/tmp/* to gitignore.
2010-10-26 18:01:23 -02:00
stJhimy
4b776c4910
Added test for Devise::Generators::ViewsGenerator with scope
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 18:00:45 -02:00
stJhimy
f53f02f385
Added test for Devise::Generators::ViewsGenerators with no params
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 18:00:39 -02:00
stJhimy
b3d3deb12f
Added test for Devise::Generators::InstallGenerator
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 18:00:33 -02:00
bUg
6b04312be5
get -> match for omniauth callbacks
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 17:55:18 -02:00
José Valim
31edd76369
Remove crazy controllers handling code.
2010-10-18 15:01:38 +02:00
José Valim
3d1152fb8f
Update README and CHANGELOG.
2010-10-18 15:01:38 +02:00
José Valim
ca038677f2
Update gemspec.
2010-10-18 15:00:34 +02:00
José Valim
3e38043085
Properly handle failure.
2010-10-18 15:00:34 +02:00
José Valim
611261c64e
More tests for Omniauth.
2010-10-18 15:00:34 +02:00
José Valim
2f360bf201
Remove OAuth2 in favor of OmniAuth.
2010-10-18 15:00:34 +02:00
José Valim
5d4e4fbb88
Automatically set OmniAuth path prefix
2010-10-18 15:00:34 +02:00
José Valim
21d5e50054
Basic omniauth support.
2010-10-18 15:00:34 +02:00
George Guimarães
bca72ddf59
fixing typo and whitespaces
2010-10-16 20:17:39 -03:00
Jared Morgan
0aa21dca4c
Use to_adapter.get in Warden::SessionSerializer#deserialize
2010-10-17 04:22:22 +08:00
Jared Morgan
31170b9100
Use to_adapter in two more methods
...
Authenticatable.generate_token and Warden::SessionSerializer#deserialize
2010-10-17 04:22:22 +08:00
José Valim
cdbd03c45a
Simplify I18n lookup.
2010-10-14 14:43:41 +02:00
José Valim
fb81453274
Update Gemfile.
2010-10-14 08:45:17 +02:00
José Valim
8539f5f915
Do not depend on orm_adapter git repo.
2010-10-10 22:06:53 +02:00
José Valim
8a8ba6c70c
Depend on ORM Adapter.
2010-10-10 17:51:32 +02:00
José Valim
b409184a98
Update CHANGELOG.
2010-10-10 17:51:32 +02:00
José Valim
e4c5158851
Sign out by default will destroy the existing session.
2010-10-10 17:51:32 +02:00
José Valim
7bc37e5237
Provide a better encryptor message and update Gemfile.lock.
2010-10-10 17:51:32 +02:00
Sean Cribbs
9f032350e3
Use ActiveModel's to_key instead of id.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-10 17:51:32 +02:00
José Valim
b4a99f6698
Use gemspec in Gemfile.
2010-10-10 17:51:31 +02:00
José Valim
94ccfc5322
Remove deprecation warnings on Rails 3.1.
2010-10-10 17:51:31 +02:00
Sebastián Gamboa
721843c841
Allow to conditionally skip email validation.
2010-10-05 05:42:20 +08:00
takahashim
a1c80b6211
use I18n'ed header on error messages block
2010-10-04 15:38:07 +08:00
dewski
69ecbd1fa3
removed the occurances of =%> at the end of erb blocks and replaced them with -%>
2010-10-02 05:56:29 +08:00
José Valim
ec5f8ae831
Update RDoc.
2010-09-30 04:47:13 -07:00
José Valim
db1ce8eeb2
Sign up now check if the user is active or not and redirect him accordingly setting the inactive_signed_up message. This commit also moves after_update_path_for to inside RegistrationsController, not allowing it to be overriden inside ApplicationController anymore.
2010-09-30 09:12:00 +02:00
José Valim
e01dccaefb
Fix recoverable tests.
2010-09-30 09:05:11 +02:00
Pat Allan
16c39a9f17
Making sure timeoutable respects rememberable if both are loaded.
2010-09-29 15:27:54 +08:00
José Valim
fbb77a6edd
Ensure bcrypt also uses pepper for backward compatibility.
2010-09-28 17:45:34 +02:00
Kevin
ab690bf36f
Use Rails 3 email_field helper instead of text_field for email
2010-09-28 06:18:05 +08:00
Joey Geiger
c8cb7d270d
Use a better label to enforce that you are changing your password to a new one.
2010-09-28 01:26:56 +08:00
José Valim
3e9b2092f8
Regenerate gemspec.
2010-09-27 09:36:09 +02:00
José Valim
ef3480004c
Ensure we are pointing to the proper sessions controller on failure.
2010-09-26 21:12:05 +02:00
Carlos Antonio da Silva
ffaba3f1d3
Avoid RAILS_DEFAULT_LOGGER deprecation warning from Webrat
...
This must be fixed in Webrat.
2010-09-26 14:53:36 -03:00
Carlos Antonio da Silva
f60123ce01
Bump webrat to 0.7.1
2010-09-26 14:45:00 -03:00
Carlos Antonio da Silva
a7cc3388b4
Regenerate devise config file for tests and get all tests green on mongoid
2010-09-26 14:31:08 -03:00
Carlos Antonio da Silva
98e69cfd71
Remove unused options param for token_auth schema, and avoid creating a new hash
2010-09-26 14:08:25 -03:00
Carlos Antonio da Silva
6a09daf570
Don't need to extend ActiveSupport::Concern anymore in oauth helpers
2010-09-26 11:47:56 -03:00
José Valim
fbac68d51a
This helpers are useless outside oauth context.
2010-09-26 13:40:09 +02:00
José Valim
2169e5de97
OAuth shortcut should use paths instead of urls.
2010-09-26 13:28:30 +02:00
José Valim
4d8d1f5222
Uncomment pepper in configuration.
2010-09-26 01:44:37 -07:00
Carlos Antonio da Silva
0bc80cec35
Remove autoload for Bcrypt encryptor, it does not exist anymore
2010-09-25 23:14:31 -03:00
José Valim
38f3f6318a
cookie_domain is deprecated in favor of cookie_options which uses session_options by default.
2010-09-25 21:13:54 +02:00
José Valim
1dfcbe3bd4
Regenerate gemspec to force latest warden version.
2010-09-25 20:29:33 +02:00
José Valim
531f221be7
Allow :stateless_token to be set to true avoiding users to be stored in session through token authentication
2010-09-25 20:28:14 +02:00
José Valim
617e142e34
Store the salt in session and expire the session if the user changes his password
2010-09-25 17:24:56 +02:00
José Valim
6613653df0
Update CHANGELOG.
2010-09-25 16:10:59 +02:00
José Valim
09088706bb
Extract encryptors into their own module for better bcrypt support.
2010-09-25 16:08:46 +02:00
José Valim
31d821c2e0
Allow to Rememberable to work without remember_token relying on salt if possible.
...
This comes with the benefit that if you change your password, all remember tokens expires, and it also requires one field less in the database.
The downside is that if you want remember_me_across_browser to be false, it won't work unless you use the token. It also requires you to be using database_authenticable.
Using salt is now the default in Devise.
2010-09-25 13:07:24 +02:00
José Valim
1ed674afa8
Use Admin in old rememberable tests.
2010-09-25 12:04:38 +02:00
José Valim
2aa1d2f3b7
Increase the size of the friendly token.
...
The chance of someone to successfully guess a random token in the website is:
(number_of_users / 2388636399360109977557402041718133080829429159844757507642063199359529632522467783435119230976)
2010-09-25 11:51:57 +02:00
José Valim
c12d75eecf
Do not rely on controller being available in params.
2010-09-25 11:22:18 +02:00
José Valim
b6089145c1
Warden 1.0! :mantears:
2010-09-25 11:22:17 +02:00
Carlos Antonio da Silva
d02ea3153b
Small doc fix
2010-09-24 08:59:39 -03:00
José Valim
dd11f43014
All tests green on latest mongoid.
2010-09-24 11:30:08 +02:00
José Valim
f96061b350
Update docs and CHANGELOG based on the 1.1.3 release from v1.1 branch.
2010-09-24 09:43:40 +02:00
Carlos Antonio da Silva
aaeb053c1d
Update CHANGELOG
2010-09-24 00:15:00 -03:00
Martin Davidsson
ec0e105c52
Incorporate feedback from carlosantoniodasilva and update rememberable
...
tests
2010-09-24 11:08:59 +08:00
Martin Davidsson
f3e348f6f4
Merge options hash instead of overwriting it
...
The forgetable hook will delete cookies based on the :scope in an
options hash but it was overwriting the options and setting them to
either an empty hash or a hash with a single :domain key. Because the
:scope was lost, the hook was trying to delete the 'remember__token'
instead of the more typical 'remember_user_token' cookie.
2010-09-24 11:08:58 +08:00
José Valim
589de27bcd
Stop using inject({}) to build hashes. It is harder to read and slower.
2010-09-22 23:29:17 +02:00
Trevor Turk
fdb4cd5b38
Major update to README - encourage use of the Wiki
2010-09-22 07:31:31 +08:00
José Valim
d6084ab1f7
Improve CHANGELOG.
2010-09-21 12:09:53 +02:00
Thibaud Guillaume-Gentil
c121d8026e
Avoid BCrypt::Errors::InvalidSalt: invalid salt
...
when password_salt is nil.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-21 12:09:07 +02:00
José Valim
5429f940e7
Refactor code related with authentication keys on password recovery and account unlocking, closes #396 .
2010-09-21 12:05:17 +02:00
RStankov
850afec96e
make User#send_reset_password_instructions to require all authentication_keys
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-21 11:47:07 +02:00
RStankov
fb86f772e7
make User#send_unlock_instructions to require all authentication_keys
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-21 11:46:57 +02:00
José Valim
b2066cc229
Add request_keys support. Closes #401 .
2010-09-21 11:45:44 +02:00
José Valim
fc37436a24
Update CHANGELOG.
2010-09-21 10:52:24 +02:00
José Valim
7c630fdb5e
Do not execute Warden::Callbacks on Devise::TestHelpers. Closes #414 .
2010-09-21 10:50:01 +02:00
Sam Grönblom
57ab87a1b6
Added four tests related to Warden callbacks
...
Two tests are to ensure that the callbacks are called at all. The other
two test ensure that the user parameter provided to the callback is not
nil.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-21 10:31:09 +02:00
José Valim
ff0b4deb1a
Add reply-to to e-mail headers by default. Closes #474
2010-09-21 10:07:02 +02:00
Pat Allan
29e9be92b0
Reworking the internals of Devise::Mailer - mainly so headers can be tweaked without overwriting/rewriting #setup_mail. (I'm using a custom mailer which is a subclass of Devise::Mailer, and want to change headers/templates in some situations - but perhaps this is useful generally).
2010-09-20 21:02:28 +08:00
Carlos Antonio da Silva
0388380614
Small comment fix
2010-09-17 20:58:32 -03:00
takahashim
a9f7b3258a
fix TypeError in test_sign_in_with_script_name(AuthenticationOthersTest)
2010-09-16 23:02:49 +08:00
Pelle Braendgaard
7b069e641b
Improved test thanks to Jose Valim.
2010-09-14 03:55:10 +08:00
Pelle Braendgaard
2fdb71716f
The http authentication code was not checking for the type of authentication in the Authentication header.
...
This caused issues with OAuth header authentication.
Please note I have added a test but I'm not sure it works right as it doesn't fails without the change :-)
But it does fix failures in the oauth-plugin provider specs using devise.
2010-09-14 03:55:09 +08:00
Carlos Antonio da Silva
5c928df66b
Strip some whitespaces
2010-09-09 21:11:23 -03:00
James Miller
0f0eb4e8ce
Fix for failed first-ever logins on PostgreSQL where column default is nil
2010-09-02 05:46:56 +08:00
Vinicius Baggio
006f48232f
Fixing typo in documentation
2010-09-01 17:50:52 -03:00
Hugo Baraúna
6e71eca2dd
Updates the docs link from rdoc.info to rubydoc.info
...
RubyDoc.info is a new guy in the ruby community that was built to replace Rdoc.info. Actually, RubyDoc.info is a result of the merge betwenn yardoc.org/docs and rdoc.info.
2010-08-31 16:17:17 -07:00
José Valim
31d7020637
Reorganize tests for failure app and add entries to CHANGELOG.
2010-08-31 23:55:25 +02:00
José Valim
c8bd965462
Depend on Rails 3 gem in Gemfile.
2010-08-31 23:47:16 +02:00
Santiago Pastorino
e582112369
set WWW-Authenticate header on http_auth if request is not xhr
2010-09-01 05:35:40 +08:00
Daniel Lopes
736654e1bc
adding docs for the namespace behavior
2010-08-31 23:59:50 +08:00
Santiago Pastorino
5fb5efbd42
Returning WWW-authenticate on ajaxs calls depends only on Devise.http_authenticatable_on_xhr config
2010-08-31 23:51:58 +08:00
Brian Rose
bf122d8fea
Remove inaccurate documentation regarding confirmable and changing emails.
2010-08-27 20:11:03 +08:00
José Valim
daf4b35f85
Update Gemfile lock.
2010-08-26 11:54:45 -03:00
José Valim
ee49077072
:default options is used, closes #452
2010-08-26 08:30:43 -03:00
Fred Wu
c6002bb9bd
Corrected the mongoid git repo.
2010-08-25 23:01:52 +08:00
José Valim
5701542adc
Update CHANGELOG.
2010-08-25 08:52:04 -03:00
José Valim
c96e17dd8d
Ensure routes works for all rails 3 versions.
2010-08-25 08:51:17 -03:00
George Guimarães
1e17b6a5ec
Typo in initializer
2010-08-25 00:41:26 -03:00
José Valim
219c05ce49
Small fix in the README.
2010-08-23 14:02:15 -07:00
José Valim
08da923276
Add more docs to the cancel action.
2010-08-23 13:51:37 -07:00
George Guimarães
a9aab6bd27
Changes the comments in devise initializer to reflect the default options.
2010-08-23 16:50:42 -03:00
José Valim
e1006bd6c6
Merge branch 'master' of github.com:plataformatec/devise
2010-08-23 10:26:52 -03:00
José Valim
b8ab9a835b
Disable HTTP Authentication by default. You can turn it on in the initializer.
2010-08-23 10:22:31 -03:00
José Valim
617b95fdcd
sign_out_all_scopes is true by default.
2010-08-23 09:18:39 -03:00
José Valim
ab7f3bc175
Added Devise.sign_out_via.
2010-08-23 09:05:40 -03:00
José Valim
3d3bb352fb
Update CHANGELOG.
2010-08-23 09:02:57 -03:00
José Valim
731650a0f1
after_sign_in_path_for always receives a resource
2010-08-23 08:56:10 -03:00
José Valim
6754ae761c
Update README.
2010-08-17 15:38:07 -07:00
Carlos Antonio da Silva
81c49c69df
Fix failing helper test and test descriptions
2010-08-13 09:02:51 -03:00
Martin Rehfeld
f3385e96ab
use :sign_out_via to control the method(s) for the destroy_*_session_path route
2010-08-13 19:16:59 +08:00
Martin Rehfeld
f04e633542
provide :sign_out_via option for Devise::Mapping
2010-08-13 19:16:58 +08:00
Fred Wu
701bbf2d3c
Updated the views generator to respect the rails :template_engine option.
2010-08-06 18:40:46 +08:00
Carlos Antonio da Silva
01c272c692
Add some tests to helper creation using namespaces, to better show how it works.
2010-08-02 08:52:12 -03:00
José Valim
c0c7aefce4
Smallish update to README.
2010-08-02 13:22:45 +02:00
José Valim
c31b1f2146
Remove skipped handling from OAuth in favor of exceptions and rescue_from syntax.
2010-07-28 21:51:26 +02:00
José Valim
a707423d23
Merge remote branch 'stepheneb/jruby'
2010-07-28 13:36:54 +02:00
Jared Morgan
afaf42df5a
Add note to README about dm-devise project
2010-07-28 19:29:46 +08:00
Stephen Bannasch
fcef459db3
updated Gemfile.lock
2010-07-27 15:02:07 -04:00
Stephen Bannasch
cd985667db
merge with master
2010-07-27 14:57:17 -04:00
Stephen Bannasch
83dc11df14
Gemfile works with JRuby 1.5.1, tests run
...
The :mongoid group does not work in JRuby so the group
is only defined for the platform: 'ruby'.
In addition installing ruby-debug in JRuby is a manual process so
only include the dependency if we are using the platform: 'ruby'
Here are the steps necessary to run the devise tests in JRuby
using rvm:
rvm install jruby
rvm use jruby@devise --create
gem install bundler --pre
gem install jeweler
bundle install
rake test
2010-07-27 14:35:18 -04:00
José Valim
e6218b3ac2
Update CHANGELOG from branch.
2010-07-27 16:32:09 +02:00
José Valim
d6c6e7cfe1
Fix generators bug.
2010-07-27 16:14:09 +02:00
José Valim
9d5a5beb59
Register helper_methods on demand.
2010-07-27 15:34:08 +02:00
Pat Allan
0a3099663e
Let's just include the test helpers for controller specs, not all specs.
2010-07-27 21:00:57 +08:00
Pat Allan
fd35b36c4a
Presumed Markdown syntax - switching inline code to RDoc.
2010-07-27 21:00:56 +08:00
Pat Allan
2d67432c23
Expanding on testing docs a little to be more useful for those using RSpec. ActionController::TestCase doesn't seem to be used in RSpec 2 - and besides, we want the setup method called so Warden is automatically initialised.
2010-07-27 21:00:56 +08:00
José Valim
2308361fe0
Update README about OAuth2 support.
2010-07-26 20:43:51 +02:00
José Valim
817a7802e1
Remove deprecated stuff, tag 1.2.0 as version.
2010-07-26 20:39:40 +02:00
José Valim
33ce94363e
Merge branch 'oauth'. Welcome to the future.
2010-07-26 20:34:01 +02:00
José Valim
fefbf51c79
scope_signed_in? helpers now simply delegate to current_scope to improve performance.
2010-07-26 20:33:23 +02:00
José Valim
a36cb6e758
Improve docs for routes customization.
2010-07-26 20:33:23 +02:00
José Valim
3beb6ef1a6
Do not eager load all controllers. Otherwise this will force OAuth to be loaded.
2010-07-26 20:33:23 +02:00
José Valim
ac69078534
Improve TODO.
2010-07-26 20:33:23 +02:00
José Valim
4ac6b6e407
Unit tests for OAuth.
2010-07-26 20:33:23 +02:00
José Valim
9222601c5b
Expand README on OAuth testing.
2010-07-26 20:33:23 +02:00
José Valim
4bfa98eb7c
More and more tests to DeviseOauth.
2010-07-26 20:33:23 +02:00
José Valim
00c6f583e2
More OAuth tests.
2010-07-26 20:33:22 +02:00
José Valim
adba4e2262
Register cancel route so a shortcut is created.
2010-07-26 20:33:22 +02:00
José Valim
ac8221aca7
Add cancel to registrations controller as a way to delete information from session.
2010-07-26 20:33:22 +02:00
Carlos Antonio da Silva
d0d88cf259
Minor tweaks in OAuth README
2010-07-26 20:33:22 +02:00
José Valim
bd8d11e291
More minor tweaks to README>
2010-07-26 20:33:22 +02:00
José Valim
0d6f303735
Add a small connection stubbing API.
2010-07-26 20:33:22 +02:00
José Valim
ef841ca17d
Start to add helpers for OAuth tests.
2010-07-26 20:33:22 +02:00
José Valim
eb3118e89a
Add OAuth2 documentation.
2010-07-26 20:33:21 +02:00
José Valim
5d6900dcdb
Remove old generators.
2010-07-26 20:32:06 +02:00
José Valim
bd1006d321
Add the possibility to skip OAuth authentication by returning nil from the finder method.
2010-07-26 20:32:06 +02:00
José Valim
17ec0c08ed
Expire all /_oauth_token$/ keys in session after sign in, so if two users create accounts in the same session, the facebook account will be linked just to the first one.
2010-07-26 20:32:06 +02:00
José Valim
b31d60ce7c
Implement error handling for OAuth.
2010-07-26 20:32:05 +02:00
José Valim
b87dc84079
Add oauth links to default template.
2010-07-26 20:32:05 +02:00
José Valim
0aa41d6388
Tidy up lose ends.
2010-07-26 20:32:05 +02:00
José Valim
8bf6a66e05
Make Devise::Oauth follow the same conventions as Devise::controllers.
2010-07-26 20:32:05 +02:00
José Valim
3ba424774e
Remove deprecated code.
2010-07-26 20:32:05 +02:00
José Valim
1a9db03b22
Do not rely on load time anymore. Instead, provide a helper that is called whenever a mapping is given.
2010-07-26 20:32:05 +02:00
José Valim
faf771c798
Add OAuth url helpers.
2010-07-26 20:32:04 +02:00
José Valim
bd8294aecf
More OAuth setup.
2010-07-26 20:32:04 +02:00
José Valim
6c5be8dfd5
Initial routes and module setup.
2010-07-26 20:32:04 +02:00
José Valim
9ab64c53f4
Release 1.1.0.
2010-07-26 20:25:28 +02:00
José Valim
c5999c8f61
Tests green on mongoid as well.
2010-07-26 20:25:02 +02:00
José Valim
680f2612f4
Update CHANGELOG.
2010-07-26 11:52:05 +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
José Valim
9c5ff02ff1
Update CHANGELOG and tidy up tests.
2010-07-07 21:32:13 +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
James Pellow
b9df42c350
Add tests for http_authenticatable_on_xhr option
2010-07-08 03:21:13 +08: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
750560ae87
Ensure method is always POST on new.html.erb forms, closes #365 . Also, start to remove usage of assert_template.
2010-07-06 16:01:22 +02:00
José Valim
e2a4ebce4a
Consider script name in PathChecker.
2010-07-06 16:01:22 +02:00
Carlos Antonio da Silva
77b7692b57
Regenerate devise initializar and get rid of some deprecation warnings from Devise and Rails.
2010-07-06 08:40:32 -03: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
Carlos Antonio da Silva
238226e33a
Adding a small note about security and issues
2010-07-05 14:26:58 -03: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
35923c9c69
Move template_paths to its own module.
2010-07-05 13:27:15 +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
55bc0ace5a
Update CHANGELOG.
2010-07-01 13:58:08 +02: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
aefcd53765
more tests for remember_across_browsers
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 12:42:59 +02:00
Trevor Turk
0eb9208503
changelog note for remember_across_browsers
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 12:42:49 +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
78e7642bd2
Tests green again.
2010-06-29 21:41:34 +02:00
José Valim
8526056bde
Merge branch 'master' of github.com:plataformatec/devise
2010-06-29 12:02:06 +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
José Valim
84c34ff0c4
Be more specific about master.
2010-06-28 12:25:03 -07: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
José Valim
7a45043bc8
Be more friendly if the user goes ahead and adds devise_for :users before defining the model.
2010-06-24 16:51:30 +02:00
Rob Holland
ad63e25c89
config.load_paths is now config.autoload_paths
2010-06-24 19:28:34 +08:00
José Valim
895a7a4951
Use Rails master.
2010-06-23 12:52:44 +02:00
José Valim
b8c2bbe73c
Revert "Revert "Track Deprecation of :name_prefix in Rails 3 RC""
...
Devise master will now follow Rails master.
This reverts commit b2c2cb272f .
2010-06-23 12:42:23 +02:00
José Valim
b76bf10203
Update README.
2010-06-23 12:42:13 +02:00
José Valim
748eced9e8
Release RC2 (for Rails 3.0.0.beta4)
2010-06-23 12:39:04 +02:00
José Valim
a39312e26b
Ensure flash messages work with Devise::TestHelper, closes #327
2010-06-23 12:39:04 +02:00
José Valim
b2c2cb272f
Revert "Track Deprecation of :name_prefix in Rails 3 RC"
...
Let's wait until a new Rails 3 release is out before applying this to maintain compatibility with Rails 3 beta 4.
This reverts commit 21874d8559 .
2010-06-23 12:39:04 +02:00
José Valim
fccde42f20
Do not show model exist message on revoke behavior, closes #334
2010-06-23 12:39:04 +02:00
Jared Morgan
e90732c8c3
Remove #save! method from test DM User model
...
DM has a #save! method, so it's no longer needed. Having it call #save
caused #valid? to be called where tests were expecting validations to be
skipped.
2010-06-23 18:38:39 +08:00
bodhi
21874d8559
Track Deprecation of :name_prefix in Rails 3 RC
2010-06-23 14:56:01 +08:00
José Valim
cfadaf80a2
Merge with jm81 and snusnu datamapper forks.
2010-06-22 21:01:37 +02:00
José Valim
df444663ac
Bring datamapper Gemfile back.
2010-06-22 21:00:46 +02:00
Jared Morgan
5b63605c94
Add dm-serializer to Gemfile so DM models respond to #to_xml
...
Fixes 3 Missing template errors
2010-06-22 11:00:36 -05:00
José Valim
3660cbac30
Do not execute after initializers if production.
2010-06-21 14:07:58 +02:00
José Valim
92cf50454b
Add Rails 3 + Mongoid example to the README.
2010-06-20 01:29:53 -07:00
Postmodern
29ba790e07
Do not use ActiveRecord only methods in tests.
2010-06-19 17:30:10 -07:00
snusnu
4e2cd157c1
Specs surely don't pass, but they run at least!
2010-06-19 17:30:10 -07:00
snusnu
194959f312
Updated Gemfile to include DataMapper-1.0.0 (from git for now)
2010-06-19 17:30:10 -07:00
José Valim
e3b815de49
Bring encrypted password limit back.
2010-06-18 22:00:31 +02:00
José Valim
ac0105d15f
No need to limit password.
2010-06-17 00:36:09 -07:00
Carlos Antonio da Silva
7dbd2eac2a
Confirmable is not default anymore, so remove it from generated migration.
2010-06-17 01:57:42 -03:00
José Valim
025c3875b6
Update gemspec, closes #316 .
2010-06-13 21:48:43 +02:00
José Valim
f1a990c2ae
Do not show messages if eager loading to call help.
2010-06-13 13:34:49 +02:00
José Valim
1f4a31f1cf
Update generators to use Rails 3 syntax, i.e devise:install instead of devise_install.
2010-06-13 13:10:33 +02:00
José Valim
31910b85a2
Regenerate .gemspec
2010-06-13 12:40:40 +02:00
José Valim
5e1ef9319e
Check if the user is already signing out before timing out his connection, closes #273 .
2010-06-13 12:40:13 +02:00
José Valim
70a429d9ff
Split tests files a bit.
2010-06-13 12:11:15 +02:00
José Valim
f16d01869a
Rename apply_schema to apply_devise_schema and refactor Mongoid part a bit.
2010-06-13 11:48:45 +02:00
José Valim
290cfd1f72
Be more generic on TestHelpers.
2010-06-13 11:09:59 +02:00
José Valim
ed22295963
Fix a couple things based on community feedback (love ya!)
2010-06-13 10:51:46 +02:00
José Valim
a2f84852af
Allow the mailer class to be configured.
2010-06-12 20:56:55 +02:00
José Valim
c4a4032b6b
Use ActiveSupport::Dependencies.ref to abstract constant lookup logic.
2010-06-12 20:48:37 +02:00
José Valim
80895c3b9a
Make I18n key for mailer compatible with lookup shortcuts, closes #245
2010-06-12 20:29:43 +02:00
José Valim
84686d285c
Be more clear that Rails 2.3 users should use the v1.0 branch README.
2010-06-12 06:56:15 -07:00
José Valim
6c18c92598
Update gemspec.
2010-06-12 15:30:43 +02:00
José Valim
0333caeb92
Make bcrypt the default encryptor and automatically add a pepper on generation.
2010-06-12 14:46:55 +02:00
José Valim
bece09c653
Comment out datamapper scenario because it simply does not work currently.
2010-06-12 13:30:55 +02:00
SSDany
cd78a26f88
add #anybody_signed_in? to helpers
2010-06-12 05:11:04 +08:00
SSDany
5c9fe5e769
anybody_signed_in? helper
2010-06-12 05:11:03 +08:00
José Valim
fb0aec09f1
Talk about beta 4 in the README.
2010-06-11 09:10:36 -07:00
José Valim
5f2a19d784
Also need a klass reader.
2010-06-09 02:50:45 -07:00
José Valim
cc608f82dd
Properly check if devise method is present.
2010-06-09 02:50:28 -07:00
José Valim
7e784b258c
Update Devise generator error message.
2010-06-09 02:41:30 -07:00
José Valim
870912d458
beta 4 works, yay.
2010-06-09 01:27:38 +02:00
Lloyd Pick
f0c0f5f11b
fixed a few spelling/grammar mistakes
2010-05-28 20:24:39 +08:00
Antonio Tapiador del Dujo
7dc1842cc4
Add note about default routes in devise configuration
2010-05-25 18:58:20 +08:00
José Valim
28b10e397f
Update CHANGELOG
2010-05-25 00:03:03 +02:00
Alexander Uvarov
6ff77c9fdf
Add merb-auth like router helper
2010-05-25 05:51:32 +08:00
José Valim
d98882d745
Tidy up previous commit.
2010-05-24 22:50:25 +02:00
Joseph DelCioppio
80977c6dee
Added after_update_path to registrations controller. Users can now specify the path that their app should return to after updated a resource. If not specified it will return to the root, or the resource's root if specified.
2010-05-25 04:25:32 +08:00
José Valim
7c82d3ee67
Move the generator bit to the top.
2010-05-21 07:42:34 -07:00
José Valim
0150fddb4c
Depends on warden 0.10.5.
2010-05-20 01:24:11 +02:00
bodhi
c8ec42a41c
Update documentation to track deprecation of :as in #devise_for
2010-05-19 15:50:48 +08:00
José Valim
bff64a6291
Added navigational formats to specify when it should return a 302 and when a 401, closes #234 and #249 .
2010-05-16 19:13:38 +02:00
José Valim
a65fd873dd
Update CHANGELOG
2010-05-16 14:55:35 +02:00
Paul Rosania
592fa59e88
Automatically create the confirmation_token when email is sent for optionally confirmable models
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 14:54:05 +02:00
Paul Rosania
02c2df65cd
Mark confirmable roles as active when confirmation_required? is false
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 14:53:08 +02:00
José Valim
59bee679ca
Add tests to cookie domain, closes #254 .
2010-05-16 14:13:56 +02:00
Mantas Masalskis
21129ae38c
custom domain cookie support
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 12:30:00 +02:00
José Valim
f1bbce58f3
Add tests to previous commit.
2010-05-16 12:14:02 +02:00
Davide Marquês
8e173f486c
Enable :registration in the :path_names configuration option.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 12:00:43 +02:00
José Valim
e905762611
Clean up the whole loading mess and closes #247 . This commit depends on latest Rails.
2010-05-16 00:38:40 +02:00
José Valim
d38421dde8
Green tests on Rails master, closes #261
2010-05-15 10:39:11 +02:00
José Valim
6162e1f5ff
Devise install now accepts --orm option.
2010-05-15 10:28:29 +02:00
José Valim
08c5179869
Update registerable on readme.
2010-05-11 02:37:46 -07:00
José Valim
bb39243da2
data_mapper uses underscore (ht: Yehuda Katz)
2010-05-05 02:28:40 -07:00
José Valim
9bdc711324
Update README.
2010-05-03 14:00:32 +02:00
José Valim
a4351b0b77
Update master CHANGELOG.
2010-05-03 13:57:57 +02:00
José Valim
416bff3daa
Merge branch 'master' of github.com:plataformatec/devise
2010-05-03 00:12:58 +02:00
José Valim
07204c500d
Confirmable is not default anymore. This provides a better bootstrap experience.
2010-05-03 00:08:48 +02:00
gitman
f5bc66521f
patch-244 for improving commented help for :confirmable configuration
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 00:06:16 +02:00
Britto
fb0f8fcd0d
typo
2010-04-29 05:45:44 +08:00
José Valim
61fbec858e
Add a missing TODO
2010-04-26 07:34:06 -07:00
José Valim
25302de1f8
Add a link to the second screencast to the README.
2010-04-25 10:02:51 +02:00
José Valim
b86c1c241b
Use markup in views as Ryan Bates does in the screencast.
2010-04-25 10:02:11 +02:00
José Valim
2bf9e462fa
Update CHANGELOG.
2010-04-25 09:59:10 +02:00
Jacques Crocker
57712737b2
Fixing up devise generator for mongoid and datamapper. Will insert devise configuration after the module include so that it works, closes #226 .
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-25 09:47:14 +02:00
Ryan Booker
c582e9cb0f
Fix grammar in notice, closes #229
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-25 09:44:04 +02:00
José Valim
d750b48879
Include model_session helpers in view, closes #227
2010-04-25 09:40:07 +02:00
José Valim
708fe78d86
Ensure password confirmation is always required, closes #228
2010-04-25 09:38:56 +02:00
José Valim
41311eb38d
Move mailer configuration to the app.
2010-04-25 09:26:51 +02:00
José Valim
da971e4249
.bundle directory should NOT be ignored.
2010-04-23 13:51:10 +02:00
hpoydar
eb23ca0ca7
Include bson_ext in Gemfile
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-23 13:50:49 +02:00
hpoydar
c9fe7900c3
Removed references to mongo_ext, since mongoid now uses bson_ext
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-23 13:50:41 +02:00
José Valim
9d6a78f7f4
Add ldap_authenticatable to README.
2010-04-22 20:55:27 +02:00
José Valim
4da63c5395
Ensure routes are loaded before application classes are eager loaded, closes #212 .
2010-04-22 19:59:52 +02:00
José Valim
b5f892bcdb
No need to check if AR is defined.
2010-04-20 17:22:16 +02:00
José Valim
3135487931
More more logic to Authenticatable.
2010-04-16 22:00:06 +02:00
José Valim
9291ab55b8
Fix compatibility with Mongoid and Datamapper, closes #206 .
2010-04-15 21:39:56 +02:00
José Valim
1db86a0810
More information about ecosystem in the README.
2010-04-15 21:20:00 +02:00
José Valim
fb832e6ffe
Replace devise_for :admin by devise_for :admins.
2010-04-15 11:31:13 -07:00
José Valim
ca6248cfd3
Release devise 1.1.rc1.
2010-04-15 08:45:33 +02:00
José Valim
b9c0676a01
Get rid of deprecation warnings.
2010-04-15 08:43:39 +02:00
José Valim
731f156f50
Do not show unlock link unless strategy is e-mail. Closes #204 .
2010-04-15 08:40:15 +02:00
José Valim
b2a50db1df
Fix a bug with STI. Closes #195 .
2010-04-15 08:34:57 +02:00
José Valim
6bd0c7fc2b
:as and :scope in routes is deprecated. Use :path and :singular instead. Closes #199 .
2010-04-15 08:21:13 +02:00
José Valim
4e674ab9a0
No need to wait for routes finalization to include UrlHelpers, closes #200 .
2010-04-14 08:59:09 +02:00
José Valim
cbfeb59fb3
Regerate gemspec.
2010-04-13 23:44:25 +02:00
José Valim
8db559148c
All tests green on latest Rails beta.
2010-04-13 23:28:13 +02:00
José Valim
7403c9f80e
Fix a mailer bug in Rails 3.
2010-04-13 23:11:12 +02:00
José Valim
f3d654a733
:activatable is added by default.
2010-04-13 13:35:34 -07:00
José Valim
bafc859f75
Fix small typo in the README.
2010-04-12 10:31:22 -07:00
José Valim
bf63824aae
Improve wording in the README.
2010-04-12 04:48:22 -07:00
José Valim
32d37cebed
Properly use scope in views generator.
2010-04-12 04:39:16 -07:00
José Valim
d2ebaa43ec
Be more helpful in the sign up message for new comers.
2010-04-09 23:13:34 +02:00
José Valim
045af3a614
Change README shown in devise_install.
2010-04-09 09:50:45 -07:00
José Valim
a96fdcf0bd
Change authenticatable to database_authenticatable in README.
2010-04-07 22:24:00 -07:00
José Valim
fd934f1434
Revert "Only triggers http in failure app if devise.authentication_method is :http."
...
It has not fixed the problem it was supposed to fix.
This reverts commit 9d1a52978c .
2010-04-06 22:36:41 +02:00
José Valim
b2fe7e49fd
Kill .bundle dir
2010-04-06 17:56:41 +02:00
José Valim
22392f23f2
Authenticatable shuold be loaded at the end.
2010-04-06 17:27:49 +02:00
José Valim
3ce98d4163
Regenerate gemspec.
2010-04-06 16:56:14 +02:00
José Valim
c07b5ae858
:activatable is included by default in your models. If you are building a strategy for devise, you now need to call validate(resource), since Devise has now a default API to validate resources before and after signing them in. You can still use other Warden::Strategies with Devise, but they won't work with a few modules like unlockable (they never did, but now we have a single point to make it work).
2010-04-06 16:34:22 +02:00
José Valim
dbe116c255
Add more info to README.
2010-04-06 13:43:38 +02:00
José Valim
9d1a52978c
Only triggers http in failure app if devise.authentication_method is :http.
2010-04-06 13:40:39 +02:00
José Valim
0d3c6b9d99
Small changes to token_authenticatable.
2010-04-06 13:26:56 +02:00
Andre Medeiros
71f74a10f7
Solved deprecation warnings
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-06 12:06:42 +02:00
José Valim
0bd75469ba
Update README.
2010-04-05 12:21:02 +02:00
José Valim
1591294b7a
Compatibility with Rails beta 3.
2010-04-05 11:46:26 +02:00
José Valim
f9cbd3c457
Add 1.0.6 entries to master changelog
2010-04-03 13:27:17 +02:00
José Valim
66ca9f5ce0
Update README to point to the RC0 gem.
2010-04-03 13:22:14 +02:00
José Valim
d3c31ef16d
Releasing 1.1.rc0 which is compatible with Rails 3.0.0.beta2. There is just one known bug with this new Rails version, which means we are close to a final Devise 'Rock Your Socks Off 1.1' version.
2010-04-03 13:20:00 +02:00
José Valim
b974b7bc78
Move failure messages from devise.sessions to devise.failure.
2010-04-03 13:11:45 +02:00
José Valim
23e608e27b
No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3.
2010-04-03 11:43:31 +02:00
José Valim
0f7b311171
Add lockable to migration.
2010-04-02 20:36:27 +02:00
postmodern
27c4280eca
Expend the length of the encrypted_password field to 128 to allow storing BCrypt or SHA512 passwords.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-02 20:31:33 +02:00
José Valim
1ba525a0e9
Tidying up some lose ends and adding more docs.
2010-04-01 22:11:59 +02:00
José Valim
d8b6ba9022
Bump warden to 0.10.3
2010-04-01 19:24:22 +02:00
José Valim
f5d01c217d
TokenAuthenticatable now works with HTTP Basic Auth by default (take a look at Highrise API for a good example). This basically allows you to pass the authentication token as HTTP Basic Auth username.
2010-04-01 19:09:33 +02:00
José Valim
2b5a068246
Move part of the logic in SessionsController#create to the FailureApp. Whenever Warden is invoked with a :recall, the failure app will recall the chosen controller and the action given to recall.
2010-04-01 17:30:55 +02:00
José Valim
13b8ddf54c
Ensure customs pass through sessions_controller.
2010-04-01 14:00:21 +02:00
José Valim
16666b7587
Get rid of flash hook and clean up passwords after registration.
2010-04-01 13:23:49 +02:00
José Valim
dac7887d7c
Allow the dummy application in test/rails_app to boot.
2010-04-01 12:49:11 +02:00
Fred Wu
42d06a241b
Added support for HAML 3+.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-01 00:14:16 +02:00
José Valim
3d1a04fd83
Fix warden configuration.
2010-03-31 22:04:48 +02:00
José Valim
1d65a76cf3
Move remember_me hook inside strategies.
2010-03-31 21:43:19 +02:00
José Valim
015c74e734
Use message verifier in cookies. Previous implementation allowed brute force attacks by cookies. Even though it is impossible for the brute force attack to succeed, the current implementation blocks the attacker even before hitting the database.
2010-03-31 13:31:45 +02:00
José Valim
6cc32db2dd
Add lock_strategy.
2010-03-31 11:54:11 +02:00
José Valim
597a930c74
We do not use t() helpers in views, so there is no reason why this particular one should use them.
2010-03-30 20:06:56 +02:00
José Valim
d7f614b726
Make config.devise available on config/application.rb
2010-03-30 11:08:16 +02:00
José Valim
e04c5ba977
More work with unlock_strategy equals to none.
2010-03-30 01:58:06 +02:00
José Valim
4fc41dd68a
Regenerate gemspec.
2010-03-30 01:50:54 +02:00
José Valim
22e1fa0cb9
Small cleanup.
2010-03-30 00:29:57 +02:00
Josh Kalderimis
a6a018253e
minor change to content type checking to make it more flexible when utf8 is returned
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-30 00:23:46 +02:00
José Valim
81926c2cd2
Allow :unlock_strategy to be :none.
2010-03-30 00:07:11 +02:00
José Valim
7d14f0bbb9
Allow several authentications to share a common path.
2010-03-29 23:44:47 +02:00
José Valim
e038d82410
Merge branch 'master' of github.com:plataformatec/devise
2010-03-29 21:02:56 +02:00
José Valim
65b8908960
Create authenticatable base model and strategy.
2010-03-29 20:52:48 +02:00
José Valim
1c5d4771ff
Initial work on making the authentication stack more flexible.
2010-03-29 16:13:19 +02:00
José Valim
604b7ef61c
Move http authenticatable response to failure app.
2010-03-29 15:16:14 +02:00
José Valim
0d704c02ca
Fix link on README.
2010-03-29 00:53:51 -07:00
Jacques Crocker
1c39590e20
Devise / DataMapper updates
...
allows devise to work with the upcoming dm-validation changes
2010-03-28 20:53:22 -07:00
Jacques Crocker
6d31e368bf
Use persisted? instead of new_record?
...
In order to be more ActiveModel compliant, lets use persisted? whereever we can. Particularly for datamapper, new_record? causes api warnings. Better to stick to the ActiveModel api I think.
2010-03-28 20:53:13 -07:00
José Valim
63deb0e80a
Update CHANGELOG.
2010-03-28 23:15:45 +02:00
José Valim
2a082f3e4c
Fix some unlockable bugs.
2010-03-28 23:09:28 +02:00
Josh Kalderimis
97b7ba8659
added imapable to the README
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-28 22:02:38 +02:00
José Valim
bc00a13a3a
Update gemspec.
2010-03-28 15:24:21 +02:00
José Valim
033db1ca7c
Do not depend on silence_missing_strategies! anymore. This speeds up strategies matching because we don't need to check if the model duck types to the strategy and it doesn't trigger uneeded strategies.
2010-03-28 14:55:05 +02:00
José Valim
066c6e8771
Do not force halt on authenticatable. This allows other strategies (like devise_imapable or even devise_facebook_connectable) to hook into sessions controller as well.
...
Those strategies should follow the same convention, allowing them to be cascated.
2010-03-28 12:52:12 +02:00
José Valim
96c8238b02
Remove duplicated method.
2010-03-28 07:24:56 +02:00
José Valim
4b7a9204b8
More configuration to validatable.
2010-03-28 07:19:23 +02:00
José Valim
ea71be8d2a
More compatibility with Rails master.
2010-03-28 07:15:52 +02:00
Jacques Crocker
6bcf18b04f
Mongoid support cleanup
...
moving test specific == override part of the test models and not part of the Compatibility module included in all Mongoid docs. Made sure that nothing in devise itself uses this == between 2 different models, its purely for assert_equal
2010-03-27 16:16:36 -07:00
Jacques Crocker
bb504e08aa
Initial Datamapper test suite
...
Test suite runs, however there's still some failing tests. This allows us to at least have a working test suite so they can fix these datamapper spec failures individually.
2010-03-27 16:15:23 -07:00
Jacques Crocker
afe6a8c8c8
Merge branch 'master' of git://github.com/plataformatec/devise
2010-03-27 16:10:30 -07:00
José Valim
a53cc74fd9
Revert "Move password_required? to authenticatable. This allow you to reuse it when building your own validations."
...
This reverts commit 386e7be823 .
2010-03-27 12:31:38 +01:00
Jacques Crocker
fd035b841b
Additional configuration for validatable
...
Added the ability to customize password length (via Devise.password_length) and the regular expression used for validating email (via Devise.email_regex)
2010-03-26 13:52:12 -07:00
Jacques Crocker
e127463ac8
Adding Mongoid 2.0 Support, Removing MongoMapper for now
2010-03-26 13:37:38 -07:00
José Valim
bd4b29c0fd
sign_in_count shoud default to zero.
2010-03-26 12:56:24 +01:00
Carlos Antonio da Silva
6f41284714
Merge branch 'master' of github.com:plataformatec/devise
2010-03-26 08:44:42 -03:00
Carlos Antonio da Silva
a5ba2ac1a8
Use prepend_before_filter in require_no_authentication.
...
We need to be sure require_no_authentication runs before other user filters that may call some Devise helper (ie current_xxx).
Conflicts:
app/controllers/devise/passwords_controller.rb
app/controllers/devise/registrations_controller.rb
app/controllers/devise/sessions_controller.rb
app/controllers/devise/unlocks_controller.rb
lib/devise/controllers/internal_helpers.rb
test/rails_app/app/controllers/application_controller.rb
2010-03-26 08:26:51 -03:00
José Valim
386e7be823
Move password_required? to authenticatable. This allow you to reuse it when building your own validations.
2010-03-26 12:19:01 +01:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
Andreas Haller
5c19605d6f
Fixed test: calling Mail::Body#encoded to get a String (Rails 3)
...
From Rails' CHANGELOG
… Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 11:00:46 +01:00
José Valim
e136573905
Improve workflow with devise generator.
2010-03-26 10:36:15 +01:00
José Valim
ae729aedc3
Allow devise to work with association proxies.
2010-03-26 10:19:31 +01:00
José Valim
12b64c691f
Add support to multipart e-mails (just put them in your mailers folder) and headers customization by simply defining headers_for in your model.
2010-03-26 10:01:24 +01:00
Josh Kalderimis
4d3a3ceb43
added test to confirm order in ALL is being adhered to when adding and including module in model
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 09:31:25 +01:00
José Valim
c76df8239f
Require no authentication on unlockable.
2010-03-23 17:56:32 +01:00
José Valim
28a6be456a
Require files before monkey patching them.
2010-03-23 16:28:17 +01:00
José Valim
76e45ecb12
Bring unloadable back.
2010-03-23 00:39:27 +01:00
José Valim
8fbbe34bdd
Fix routes generation on Rails master.
2010-03-16 14:48:30 +01:00
José Valim
3a84fd4f3f
Ensure devise_views is always executed.
2010-03-16 02:51:59 +01:00
José Valim
37bb6948a2
Update README to tell about Rails edge and Devise edge.
2010-03-15 03:21:12 -07:00
Ørjan Blom
f129b9ffd7
don't use a static name in a public directory, and delete after use.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 15:02:54 +01:00
Fred Wu
6ce33b7b57
Updated the gem dependencies.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 11:22:26 +01:00
José Valim
185541b9e4
Use template engine as option since it's the one used by rails.
2010-03-14 09:39:59 +01:00
Ørjan Blom
e81d428d53
update gem dependencies
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:28:13 +01:00
Fred Wu
de92be39f2
Use Ruby's tmp directory instead of a ghost directory inside the devise gem folder.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:57 +01:00
Fred Wu
3f85fa88c3
Use 'rescue' to ensure the presence of Haml.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:52 +01:00
Fred Wu
2ebbc30540
Made sure no deprecated HAML templates (in case any) will get copied over.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:45 +01:00
Fred Wu
b8091928a0
A more user friendly way of checking the existence of Haml.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:39 +01:00
Fred Wu
cbd35a846a
Added verification for HAML >= 2.3.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:31 +01:00
Fred Wu
90e8253205
Added HAML as a template engine option to devise_views generator (-t or --engine). HAML files are created based on the erb files on the fly using 'html2haml' command that comes with HAML.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:19 +01:00
José Valim
3f0bae1968
Allow to give :skip in devise_for to skip routes for an specific controller.
2010-03-12 09:54:57 +01:00
José Valim
59b26d8427
All tests pass using Rails master.
2010-03-11 18:39:32 +01:00
José Valim
cbc3747039
No need to check if app.routes.url_helpers exists. I.e. Devise master now *requires* Rails master (aka beta1).
2010-03-10 08:59:22 -07:00
José Valim
ed3a460bad
Allow to give a scope when copying views.
2010-03-10 16:53:09 +01:00
José Valim
ac742e3271
Clean up lockable and class methods API.
2010-03-10 16:13:54 +01:00
Fred Wu
cd17099401
Create the devise_views directory in './app/views' instead of the root.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-10 15:29:30 +01:00
José Valim
829c85631b
Aim for Rails 3.0.0.beta1 compatibility. A few issues are still pending with Warden.
2010-03-10 15:00:12 +01:00
Ørjan Blom
1a740774e3
use Devise.encryptor setting when creating the migration
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-09 10:38:39 +01:00
Philip MacIver
bb9f594cc8
Changed the datamapper orm so that the default value is only deleted when it is nill, this is so that is a value is set to another value except nil by default through devise, that value will be maintained in datamapper
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-06 18:14:37 +01:00
Philip MacIver
d64e146ec9
Modified the datamapper orm so that it actually works with devise
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-06 16:18:53 +01:00
Philip MacIver
0a0d7ba577
Typo in the datamapper orm stopped it from being loaded properly
...
Signed-off-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com >
2010-03-04 20:44:09 -03:00
José Valim
288b92d2be
Update CHANGELOG.
2010-03-03 12:25:28 +01:00
José Valim
1d4f4c19c9
Release pre4 with improved controller handling.
2010-03-03 12:22:04 +01:00
José Valim
901c6ae4df
Always get a new object on edit, update and delete.
2010-03-03 12:12:06 +01:00
José Valim
0e64bc74b7
Move trackabe logic to the model.
2010-03-03 12:03:43 +01:00
José Valim
038627574c
Keep modules definition in a different file.
2010-03-03 12:03:43 +01:00
José Valim
af39afcdf8
More refactoring.
2010-03-03 12:03:43 +01:00
José Valim
1660831002
Give more flexibility when swapping controllers.
2010-03-03 12:03:42 +01:00
Carlos Antonio da Silva
03e11e4a18
We also have sign up as a valid path name for routes
2010-02-27 09:35:26 -03:00
José Valim
20ca0dc981
Add info about devise_facebook_connectable.
2010-02-27 09:13:42 +01:00
Daniel Kehoe
5c59f4cd1b
Fixes to syntax, diction and spelling in README.
2010-02-27 16:04:38 +08:00
Daniel Kehoe
5bc741cdab
Add a section 'Examples' to the README mentioning plataformatec/devise_example and fortuity/subdomain-authentication
2010-02-27 16:04:37 +08:00
Daniel Kehoe
cfb3305ae5
Add a section 'Related Applications' to the README with a mention of devise_invitable
2010-02-27 16:04:37 +08:00
Lucas Uyezu
8525b56318
SQLite requries a default value when the column is NOT NULL
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-25 08:33:38 +01:00
José Valim
bcb46bbccb
Do not forget frozen records.
2010-02-25 08:00:10 +01:00
José Valim
484361e815
Improve error message on undefined method devise.
2010-02-25 07:54:06 +01:00
José Valim
94511c1a43
Bump to 1.1.pre3
2010-02-24 22:19:46 +01:00
Andrei Bocan
c914c143bc
Fix typo in route description
2010-02-24 18:22:43 +08:00
José Valim
e03e137c35
Update warden which fixes a security issue.
2010-02-23 19:47:45 +01:00
snusnu
a12ca2955f
Avoid datamapper deprecation warnings
2010-02-24 01:52:08 +08:00
José Valim
e6f3034b11
Do not remove options from MongoMapper and DataMapper in find.
2010-02-23 15:51:29 +01:00
José Valim
33cf55aa13
Add link to wiki on README.
2010-02-19 23:54:55 -07:00
José Valim
e9682a3e64
In Rails 3, for some reason, you need to restart the server after copying views.
2010-02-19 23:54:05 -07:00
Jacques Crocker
3f37ce03c8
Gemfile fix for mongomapper
...
Points MongoMapper dependency to use a fork on MongoMapper that supports Rails3.
2010-02-19 20:32:32 +08:00
Jacques Crocker
4a51394af5
MongoMapper test suite fixes
2010-02-19 20:32:31 +08:00
Carlos Antonio da Silva
b3283e097d
Use available warden_options method instead of env.
2010-02-19 09:07:37 -02:00
Paul Campbell
e9c16d852e
add paragraphs to html emails
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-19 10:20:02 +01:00
José Valim
1c6f18cb8b
Since Devise::FailureApp is now a metal, we can get rid of this default_url_options stuff.
2010-02-19 10:13:53 +01:00
José Valim
4a0b9c663a
Use metal for Devise::FailureApp. \m/
2010-02-19 09:52:12 +01:00
José Valim
f0eb4348f3
Deprecate Devise.orm. This allows you to use several ORMs with Devise and reduces the required API.
2010-02-19 09:26:17 +01:00
José Valim
3ac399f2ff
Returns the proper response body based on the rquest for 401.
2010-02-18 19:38:13 +01:00
José Valim
889803151d
Release 1.1.pre2
2010-02-18 18:06:01 +01:00
José Valim
35e058b279
Fix the undefined method devise issue.
2010-02-18 18:04:08 +01:00
José Valim
104d5b0441
There is no such thing as magic, my dear Watson.
2010-02-18 17:59:05 +01:00
José Valim
968ebe1b15
Uses the same content type as request on http authenticatable 401 responses
2010-02-17 21:40:01 +01:00
José Valim
1282fc03cf
Add missing autoload.
2010-02-17 16:53:17 +01:00
José Valim
a79e8e0404
Tiny change in generator README.
2010-02-17 16:37:27 +01:00
José Valim
6d6633d1fb
Release 1.1.pre which is Rails 3 compatible.
2010-02-17 13:53:05 +01:00
José Valim
fdf06861b0
Load Devise ORM after initialization.
2010-02-17 13:18:08 +01:00
José Valim
f6cc219210
Devise now allows you to have custom controlleers. Check the README for more information.
2010-02-17 13:15:19 +01:00
José Valim
691f9324f5
Use ActiveSupport::Concern.
2010-02-17 12:35:38 +01:00
José Valim
8e21373946
Rename devise/shared/_devise_links to devise/shared/links.
2010-02-17 12:30:08 +01:00
José Valim
02e8c04cde
Update views generator and now have scoped views.
2010-02-17 12:26:54 +01:00
José Valim
5bf2eb3850
Updated .gitignore.
2010-02-17 11:11:27 +01:00
José Valim
443a2d8343
Moved devise_install to rails 3 generators.
2010-02-17 11:10:24 +01:00
José Valim
38bfe3f990
First generator for Rails 3.
2010-02-17 11:00:10 +01:00
José Valim
b4bbd3b892
Get all tests passing for ActiveRecord and allow MongoMapper tests to run.
2010-02-17 10:11:43 +01:00
José Valim
33941d1f62
All tests passing (except two which are errors in Rails). Now generators and initialization process.
2010-02-16 21:23:58 +01:00
José Valim
e6e66481b8
Got all tests in test/models and failure app ones passing. 369 tests, 805 assertions, 13 failures, 2 errors.
2010-02-16 17:00:36 +01:00
José Valim
d466849c57
More tests passing for Rails 3 compatibility. 369 tests, 788 assertions, 34 failures, 16 errors.
2010-02-16 16:11:30 +01:00
José Valim
b3e11c5aca
Got another bunch of tests passing on Rails 3. 369 tests, 731 assertions, 33 failures, 53 errors.
2010-02-16 14:57:10 +01:00
José Valim
766316b5e7
Got tests running on Rails 3: 369 tests, 486 assertions, 45 failures, 124 errors.
2010-02-16 14:31:49 +01:00