From c559bd56026cd27c8afbdfe377e8f017175afb7d Mon Sep 17 00:00:00 2001 From: cktricky Date: Sun, 9 Mar 2014 20:16:54 -0400 Subject: [PATCH] updated tutorial to reflect changes to the correct code listed within the user model --- .../broken_auth_sess/_password_complexity.html.erb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/tutorial/broken_auth_sess/_password_complexity.html.erb b/app/views/layouts/tutorial/broken_auth_sess/_password_complexity.html.erb index 4ca6a3e..9f4ad27 100644 --- a/app/views/layouts/tutorial/broken_auth_sess/_password_complexity.html.erb +++ b/app/views/layouts/tutorial/broken_auth_sess/_password_complexity.html.erb @@ -70,12 +70,11 @@
  • 1 special character
  • -			  validates :password, :presence => true,
    -			                        :confirmation => true,
    -			                        :length => {:within => 6..40},
    -			                        :if => :password,
    -			                        :format => {:with => /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/}
    -										
    +validates :password, :presence => true,
    +                      :confirmation => true,
    +                      :if => :password,
    +                      :format => {:with => /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/}
    +