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
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
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
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
Shaliko Usubov
db8eeb6c6e
Remove not used variables
2012-05-26 20:31:42 +04:00
Rodrigo Flores
768f8832b9
Removing encryptable module
2012-05-07 16:37:16 -03:00
Andrey Deryabin
9ec1003f1e
removed global namespaces
2012-04-16 21:27:16 +07:00
José Valim
52b4bab461
Fix failing test.
2012-03-30 09:13:28 +02:00
Rodrigo Flores
3623215b8c
failed_attempts is set to 0 on sign in
2012-03-19 17:09:22 -03:00
Rodrigo Flores
a7658f9d75
Checking required fields on lockable
2012-03-13 15:50:13 -03:00
José Valim
0ab28ef8ee
Add skip_reconfirmation! , closes #1708
2012-03-09 18:12:30 +01: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
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
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
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
8ac8129fe7
Added required_fields to database_authenticatable
2012-02-22 13:55:01 -02:00
George Guimarães
b190fa38c7
typo
2012-02-17 19:15:46 -02:00
José Valim
d2223ee5e3
Improve coverage, cache array in a constant.
2012-02-15 20:18:52 +01: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
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
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
José Valim
89db0dd44d
Do not run validatins unless on reconfirmable branch, closes #1515 .
2011-12-20 20:54:49 +01:00
T1D
c9becd3ea1
Allow regular expressions to avoid string conversion for parameter
...
filtering.
2011-12-14 10:41:24 -06: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
bd27bf7677
Deprecate and disable old behavior accumulated with time.
2011-12-04 23:58:19 +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
lest
37dad2172b
implement dynamic value for timeout_in as a model method instead of a proc
2011-11-25 11:01:42 +03:00
lest
426223dda0
timeout_in option can be a Proc object
2011-11-24 21:42:58 +03:00