aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-19 14:58:14 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-19 15:01:29 -0200
commit08ccd29b5b1e3badc2176a8036fea138b774c38f (patch)
tree9cda3f80b5cad5d6cb525dffcf38bc1c6de17e72 /activerecord
parent37e643120a5f4ba9fa15b74d6f489f7a0bb66c0d (diff)
downloadrails-08ccd29b5b1e3badc2176a8036fea138b774c38f.tar.gz
rails-08ccd29b5b1e3badc2176a8036fea138b774c38f.tar.bz2
rails-08ccd29b5b1e3badc2176a8036fea138b774c38f.zip
Remove weak_passwords list and the length/strong password validator, leave that up to the programmer
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 9d22842cb3..fd571c4ca4 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -6,12 +6,12 @@
class User < ActiveRecord::Base
has_secure_password
end
-
- user = User.new(:name => "david", :password => "secret", :password_confirmation => "nomatch")
- user.save # => false, password not long enough
- user.password = "mUc3m00RsqyRe"
+
+ user = User.new(:name => "david", :password => "", :password_confirmation => "nomatch")
+ user.save # => false, password required
+ user.password = "mUc3m00RsqyRe"
user.save # => false, confirmation doesn't match
- user.password_confirmation = "mUc3m00RsqyRe"
+ user.password_confirmation = "mUc3m00RsqyRe"
user.save # => true
user.authenticate("notright") # => false
user.authenticate("mUc3m00RsqyRe") # => user