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/}
    +