Open
Description
There are several issues with this documentation.
- The documented solution and bug still uses hash rocket syntax, which causes errors on Rails 5.1. I found a working solution with the following:
validates :password, presence: true,
confirmation: true,
length: {within: 6..40},
format: { with: /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/, message: "password policy" },
on: :create,
if: :password
- After implementing the password policy, unit tests were failing because the database couldn't seed properly. We should add a note to the documentation that users will need to change the seed passwords or we can just use a "more secure" password by default, such as
Citrusblend2@