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
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
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
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
Drew Ulmer
00a01c2bc4
Fix #1994 Lockable no longer leaks account existence
2012-10-25 16:51:56 -05: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
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
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
igor04
d59301ed2a
Deleted unnecessary validation in generator mongoid model
2012-08-26 14:54:08 +03: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
Radagaisus
422bf89182
autofocus for simple_form_for
2012-08-22 15:28:25 +03: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
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
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
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
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
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
Ben Knowles
a1411c885f
Trackable should use the remote IP address, not the gateway's
2012-07-12 13:34:31 -05: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
Rodrigo Flores
2950434ed3
New password default minimum length is now 8
2012-07-06 13:41:28 -03:00
Carlos Galdino
c179cef365
Change the minimum password length to 8
2012-07-06 11:46:46 -03: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
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
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
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
Chris Oliver
e7a8a7247c
Switch and, or to &&, ||
2012-06-15 08:45:44 -05:00