Rafael Mendonça França
|
87922e6ea2
|
Use the Ruby 1.8 hash syntax.
Yes we still support Ruby 1.8 😢
Conflicts:
Gemfile.lock
|
2013-01-28 13:43:16 -02:00 |
|
José Valim
|
5a158f8b24
|
Require string conversion for all values
|
2013-01-26 11:58:19 -07: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 |
|
Kir
|
5ba6670164
|
Added support for rails 3.1 new mass assignment conventions
|
2011-11-24 12:51:03 +04:00 |
|
José Valim
|
dc8aa9ef83
|
Move param filtering to its own object and make all finder methods pass through it, closes #1413.
|
2011-11-10 10:14:02 -02: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 |
|
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 |
|
Gabe da Silveira
|
3488066031
|
Spelling correction
|
2011-07-29 14:17:31 -07: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
|
6a8ee475fd
|
This was fixed in mongoid, closes #770.
|
2011-06-29 20:18:10 -03:00 |
|
Chase DuBois
|
c3432e57b1
|
Test for previous commit
|
2011-06-21 20:45:07 -04: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 |
|
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 |
|
José Valim
|
4964f53a42
|
Merge pull request #1092 from xavier/filterwhitelist
Conditional string conversion of auth params (Closes #1079)
|
2011-06-08 08:39:53 -07:00 |
|
Paul Bellamy
|
0bcf71f8df
|
Rails has removed SecureRandom from ActiveSupport in Rails 3.2,
deprecated
* Changing references in generators and encryptable_test
|
2011-05-28 14:44:54 +01:00 |
|
Xavier Defrang
|
ab3bb9cf4d
|
Conditional string conversion of auth params (Closes #1079)
|
2011-05-26 15:45:03 +02:00 |
|
José Valim
|
69126a31db
|
Merge pull request #1052 from Thibaut/email-validation
Don't validate email format and uniqueness unless it's changed
|
2011-05-26 05:24:45 -07:00 |
|
Josh Kalderimis
|
e10bc9e3c0
|
dup the conditions hash before calling filter_auth_params, this fixes an issue with reseting your password when using a custom auth field like login
|
2011-05-16 14:08:22 -04:00 |
|
Thibaut
|
92c9ed2d6c
|
Don't validate email format and uniqueness unless it's changed.
|
2011-05-07 19:02:44 +02:00 |
|
fabian
|
8bdc4b544f
|
added update_without_password method
|
2011-05-05 09:24:21 +02:00 |
|
José Valim
|
e763f843c4
|
Tests pass on 3.0.7
|
2011-05-04 19:24:11 +02:00 |
|
José Valim
|
a59410a254
|
password_required? should not affect length validation, closes #1037.
|
2011-04-29 08:33:33 +02:00 |
|
Chase DuBois
|
89e4ab8a45
|
Moved check against record deletion into forget_me! method in model; added unit test.
|
2011-04-25 15:49:59 +08:00 |
|
José Valim
|
ae976f60ca
|
Mark the token as expired, because invalid gives no clue of what to do next.
|
2011-04-21 19:17:33 +02:00 |
|
José Valim
|
40153b7422
|
Add tests to previous commit.
|
2011-04-21 13:56:10 +02:00 |
|
Rodrigo Flores
|
a229627a54
|
Removed failing test cases on e-mail validations
|
2011-04-19 20:16:20 +08:00 |
|
SixArm
|
2a5669967f
|
Change test email addresses to ues RFC 2606 reserved domain example.com
|
2011-04-18 15:59:13 +08:00 |
|
Steve Hodgkiss
|
60809719b8
|
Fix bug when the reset_password_sent_at field doesn't exist generate_password_token returns nil causing the token not to be saved.
|
2011-04-17 23:53:50 +08:00 |
|
José Valim
|
5e2ee5eb6a
|
Downcase keys before validation.
|
2011-04-16 12:52:59 +02:00 |
|
Mikel Lindsaar
|
e329930a82
|
Update DatabaseAuthenticatable#valid_password? to not raise error on empty password
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2011-04-16 12:41:49 +02:00 |
|
Matias Korhonen
|
8db00eedea
|
Bump the password maximum length to 128 characters.
|
2011-04-15 16:39:01 +08:00 |
|
Jean-Daniel Guyot
|
be2aeee70f
|
Add reset_password_within configuration variable.
|
2011-03-30 21:11:33 +08:00 |
|
José Valim
|
edee511cd1
|
Rename active? to active_for_authentication?
|
2011-03-25 15:40:46 +01:00 |
|
José Valim
|
3f4fb1a769
|
Improve previous patch.
|
2011-03-11 20:46:08 +01:00 |
|
gilles
|
1982ad9f57
|
fix for possible injection with mongo
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2011-03-11 20:24:24 +01:00 |
|
Vinicius Baggio
|
aa81df261c
|
Warn about an incompatibility between Devise and Mongoid
|
2011-02-25 18:17:14 -03:00 |
|
Vinicius Baggio
|
0cc900e7cf
|
Reset lock attempts count when lock is expired. Closes #825
|
2011-02-25 17:59:27 -03:00 |
|
Jo Liss
|
f964ea526b
|
Skip test that fails with Mongoid.
The test suite passes now.
|
2011-02-10 23:00:14 +08:00 |
|
Jo Liss
|
8440ed0101
|
Make Devise::friendly_token 20 characters long.
This makes the tokens better suited for URLs in plain-text emails, and
is still secure for all practical purposes.
|
2011-02-10 21:42:58 +08:00 |
|
José Valim
|
f332d7e932
|
Add a test to show recoverable works as expected if password is blank.
|
2011-02-09 10:11:48 +01:00 |
|
Carlos Antonio da Silva
|
c9fe8885f9
|
Spaces
|
2011-02-06 19:23:36 -02:00 |
|
Nico Ritsche
|
f06bed279a
|
corrected 'an user' to 'a user' in comments and docs
|
2011-02-06 23:46:49 +08:00 |
|
John Plummer
|
7a1852e9f5
|
Allow send confirmation to change keys used
|
2011-02-05 16:19:01 +08:00 |
|
Richard Aday
|
88d4aca2c4
|
Adding tests for reset_password_keys and unlock_keys
|
2010-12-30 03:11:03 +08:00 |
|
José Valim
|
8f20b13f84
|
By default, just require e-mail on recover and lockable.
|
2010-12-28 23:00:23 +01:00 |
|
Andrew Dahl
|
8d1e23c67d
|
add unit and integration tests for case insensitive keys
|
2010-11-20 15:54:01 +01:00 |
|
José Valim
|
67a49f3b75
|
Ensure authenticatable_salt can be nil.
|
2010-11-11 22:51:39 +01:00 |
|