needs_captcha

NAML documentation   Watch a video
   Usages of this macro
... in captcha_5_posts.naml
20
21
22
23
24
25
<macro name="needs_captcha">
    <n.either
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
        <condition1.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.has_too_many_posts
Binary
Namespace: UserNamespace
/>
        <condition2.regex_matches
Macro
Parameters: pattern, text
 text="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.node_count
Binary
Namespace: UserNamespace
Parameters: filter
/]" pattern='^[01234]$'/>
    </n.either>
</macro>