| ... | in validate_registration_form.naml |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<override_macro name="validate_registration_form">
<n.user_name_field.notify_if_empty/>
<n.email_field.notify_if_empty/>
<n.password_field.notify_if_empty/>
<n.password2_field.notify_if_empty/>
<n.if.not.equal value1="[n.password_field.value/]" value2="[n.password2_field.value/]">
<then.throw_template_exception name="passwords_dont_match"/>
</n.if.not.equal>
<n.if.not.equal value1="[n.validate_field.value/]" value2="行诸山野,立命天地">
<then.throw_template_exception name="invalid_recaptcha"/>
</n.if.not.equal>
<n.if.not.accept_terms_field.is_checked>
<then.throw_template_exception name="must_accept_terms_of_use"/>
</n.if.not.accept_terms_field.is_checked>
</override_macro>
|
| ... | in register.naml |
|
166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
<macro name="validate_registration_form">
<n.user_name_field.notify_if_empty/>
<n.email_field.notify_if_empty/>
<n.password_field.notify_if_empty/>
<n.password2_field.notify_if_empty/>
<n.if.not.equal value1="[n.password_field.value/]" value2="[n.password2_field.value/]">
<then.throw_template_exception name="passwords_dont_match"/>
</n.if.not.equal>
<n.if.not.accept_terms_field.is_checked>
<then.throw_template_exception name="must_accept_terms_of_use"/>
</n.if.not.accept_terms_field.is_checked>
</macro>
|
| Free forum by Nabble | Edit this page |