From 08ccd29b5b1e3badc2176a8036fea138b774c38f Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sun, 19 Dec 2010 14:58:14 -0200 Subject: Remove weak_passwords list and the length/strong password validator, leave that up to the programmer --- activerecord/CHANGELOG | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activerecord') 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 -- cgit v1.2.3