updated tutorial to reflect changes to the correct code listed within the user model
This commit is contained in:
@@ -70,11 +70,10 @@
|
|||||||
<li>1 special character</li>
|
<li>1 special character</li>
|
||||||
</p>
|
</p>
|
||||||
<pre class="ruby">
|
<pre class="ruby">
|
||||||
validates :password, :presence => true,
|
validates :password, :presence => true,
|
||||||
:confirmation => true,
|
:confirmation => true,
|
||||||
:length => {:within => 6..40},
|
:if => :password,
|
||||||
:if => :password,
|
:format => {:with => /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/}
|
||||||
:format => {:with => /\A.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\@\#\$\%\^\&\+\=]).*\z/}
|
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user