Skip to content

Commit e94a8e2

Browse files
committed
Deploy website
Deploy website version based on 3cb0c6e29b87315e149e113fb546d39fbaf660cf
1 parent ba7d8e0 commit e94a8e2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/custom-validators-sanitizers.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ <h3><a class="anchor" aria-hidden="true" id="example-checking-if-password-confir
5656
<span class="hljs-keyword">if</span> (value !== req.body.password) {
5757
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">Error</span>(<span class="hljs-string">'Password confirmation does not match password'</span>);
5858
}
59+
60+
<span class="hljs-comment">// Indicates the success of this synchronous custom validator</span>
61+
<span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;
5962
}), (req, res) =&gt; {
6063
<span class="hljs-comment">// Handle the request</span>
6164
});

0 commit comments

Comments
 (0)