José Valim
49807cf0b7
Try to fix the misterious case where some url helpers are not defined.
2011-10-09 17:14:37 +02: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
José Valim
9ebcb691b0
Depend on jdbc master.
2011-09-08 09:05:06 +02:00
José Valim
7b0a8f9bdc
Also try the root route for convenience, closes #1312 .
2011-09-08 08:32:05 +02:00
James Cook
edcca8cd3f
DatabaseAuthenticatable#clean_up_passwords should set accessors to nil, not empty string.
2011-09-02 13:14:15 -04: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
8796c1c601
Do not always skip helpers, instead provide :skip_helpers as option to trigger it manually
2011-08-31 12:02:57 +02:00
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