José Valim
295088f9e8
Depend on latest Rails.
2011-08-30 14:33:23 +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
a8d9695324
Simplify regexp and ensure it runs against UTF8 chars, closes #1235
2011-08-29 13:15:40 +02: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
Szymon Przybył
7665cbf21d
Allow to set default 'from' header of Devise mails in custom mailer class
2011-08-20 22:35:47 +02:00
Benjamin Quorning
a3bff7d6a2
Fix usage of "its" / "it's" in documentation
2011-08-16 22:15:25 +02:00
David Turner
6d65c28f1f
remove hard-to-distinguish characters from friendly_token
2011-08-10 12:44:30 -04:00
Alexander Uvarov
d38341b5e0
Don't require explicit scope in authenticate router extension
2011-08-10 15:41:06 +06: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
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
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
919404df53
Merge pull request #1228 from dasil003/master
...
Set up Recoverable to automatically confirm! if Comfirmable
2011-08-02 12:41:09 -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
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
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
Jo Liss
2a6c160d39
Remove whitespace from generator template
2011-07-08 18:41:16 +02:00
Simon Ernst
517343ddb5
Add ability to override redirect_to path after account confirmation.
2011-07-08 11:21:01 +02: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
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
219fbc0056
Fix tests, remove whitespace and update CHANGELOG.
2011-06-28 07:05:35 -03:00
Guillaume Hain
e2895239d8
Internationalization of resource_name in DeviseHelper#devise_error_messages!
2011-06-27 20:31:03 +02:00
José Valim
13ef23f517
Add simple form generators.
2011-06-27 11:50:28 -03: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
José Valim
f43a7c4f24
Merge pull request #1147 from sj26/master
...
Authenticated Route Constraints
2011-06-23 05:29:17 -07: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
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
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
b37055fa47
Added a test to return empty json
2011-06-22 19:38:21 -03:00
José Valim
77d6d1e8c2
Do not try to authenticate with no_input_strategies are empty.
2011-06-22 15:28:49 -03:00
Rodrigo Flores
422bc4aaa6
Added tests for lockable
2011-06-22 12:52:11 -03:00
Rodrigo Flores
76281ff15c
Added tests for paranoid mode on confirmable
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
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
Chase DuBois
c3432e57b1
Test for previous commit
2011-06-21 20:45:07 -04:00
José Valim
84e1a89c44
Fix failing tests.
2011-06-17 10:46:39 -03:00
Mac Martine
7631456047
Added support for Devise routes to honor constraints.
2011-06-16 21:24:20 -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
e242ca0937
Fix failing tests.
2011-06-10 11:10:56 +02: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