Carlos Antonio da Silva
2135ae5e5e
Change email_change => email_changed notification
...
This better indicates what the setting is for, and when it's supposed to
be triggered.
We might eventually deprecate the existing password_change on in favor
of password_changed.
2017-03-10 08:56:34 -03:00
Carlos Antonio da Silva
8387cc9474
When using reconfirmable, notify the original email about the change right away
...
Do not wait for the email change to be confirmed by the "unconfirmed
email" with reconfirmable: notify the original email right away.
2017-03-06 17:07:55 -03:00
Arne Zeising
ac702843dd
Change behavior to skip reconfirmation after creating a record with #save called in callback ( #4125 )
...
https://github.com/plataformatec/devise/pull/4125
2016-06-13 17:57:24 -03:00
Lucas Mazza
a2498074f1
Replace custom Array assertion with assert_equal.
2016-05-03 14:18:35 -03:00
Lucas Mazza
536279b05b
Replace homemade assert_not matcher in favor of refute.
2016-05-03 13:57:10 -03:00
MatBi
274f8f2f87
Should send confirmation instructions after changing email from nil
2016-04-18 19:35:56 +08:00
MatBi
6f9561e64f
Refactor a test
2016-04-18 18:30:20 +08:00
MatBi
016b216d95
Change the name of variables to keep the tests consistent
2016-04-18 18:15:32 +08:00
José Valim
7c75ebe672
Merge pull request #3936 from bogdanvlviv/patch-3
...
Update confirmable_test.rb
2016-02-06 20:11:11 +01:00
bogdanvlviv
d9481ff9b8
Update confirmable_test.rb
2016-02-06 20:37:31 +02:00
Bogdan
d3fa53151a
change call deprecated method confirm! to confirm in test
2016-02-03 22:09:38 +02:00
Lucas Mazza
2f7834245b
Merge pull request #3835 from kv109/master
...
test for save in after_create hook breaks devise confirmation [3787]
2015-12-15 11:36:47 -02:00
Kacper Walanus
a0cd4655ba
test for save in after_create hook breaks devise confirmation [3787]
2015-11-24 01:54:03 +01:00
Andy Geers
d3f521925e
Write unit test for bug fix
2015-11-18 22:21:03 +00:00
Vincent Woo
eb640ed344
Do not use digests for confirmation tokens
2015-07-30 01:55:50 -07:00
Nicolas Viennot
c22e7133b6
Removes the bang in confirm! and reset_password!
...
Closes #3412 and #3570 .
2015-04-19 11:47:44 -04:00
Ronald Chan
3f95ac8fec
Keep used confirmation tokens for more user friendly error message ( fixes #3429 )
2015-01-19 22:30:13 +13:00
Tim Scott
3b882dadac
Made ensure valid a named param for confirm!, and added a test.
2014-11-19 16:48:35 -06:00
James Kiesel
c1864663aa
Localize confirmable tests
2014-10-21 02:28:58 +13:00
Lucas Mazza
716d128e27
Restore global allow_unconfirmed_access_for after test
2014-09-08 17:38:06 -03:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Erik Michaels-Ober
26e85c44e2
Removed use of gendered pronouns
2013-12-02 10:02:17 +01:00
José Valim
6b3b0c5e8c
Remove deprecated token lookups
2013-09-02 19:23:15 -03:00
José Valim
354e5022bf
Only allow insecure token lookup if a flag is given
2013-08-06 11:55:13 +02:00
José Valim
143794d701
Use HMAC on tokens stored in the DB
2013-08-05 18:56:07 +02:00
Siarhei Hanchuk
b7bc8dec12
Added method after_confrimation
2013-07-23 14:19:58 +03: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
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
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
Greg Gates
72cfaad618
Add #skip_confirmation_notification to Confirmable
2013-02-22 12:43:01 -05: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
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
6e79c5c242
Ensure a new token is generated if the previous one expired
2012-07-23 16:05:51 +02: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
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
0ab28ef8ee
Add skip_reconfirmation! , closes #1708
2012-03-09 18:12:30 +01:00
Lucas Mazza
64c05f2ce9
Fix the assert_same_content assertion helper
...
and a broken confirmable test.
2012-02-22 16:49:09 -02:00
Rodrigo Flores
a909bfaf85
Added required_fields when reconfirmable
2012-02-22 13:55:06 -02:00
Rodrigo Flores
e3412d4207
No need to sort anymore
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
18aef6ac33
Some refactor
2012-02-22 13:55:03 -02:00
Rodrigo Flores
6489354b0e
Required fields on confirmable
2012-02-22 13:55:02 -02:00
Vasiliy Ermolovich
aca8d3f34c
regenerate confirmation token on reconfirmation, closes #1530
2011-12-31 14:22:58 +03:00
José Valim
89db0dd44d
Do not run validatins unless on reconfirmable branch, closes #1515 .
2011-12-20 20:54:49 +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