handle_registration_errors

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "handle_registration_errors".
... in handle_registration_errors.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<override_macro name="handle_registration_errors">
    <n.if.is_submitted_form>
        <then>
            <n.if.has_exception for="save-block">
                <then>
                    <n.handle_exception. for="save-block">
                        <div class="error-message important" style="margin:1em;padding:.5em 0">
                            <n.comment.>Added exception if email address is not in Member list</n.comment.> 
                            <n.exception. name="user_is_not_member">  
                                <t>This email address is not listed as a valid member.  Please contact The SUDSOL Leadership Board at slb@sudsol.org for assistance.</t>
                            </n.exception.> 
                            <n.exception. name="user_already_registered">
                                <t>You have already been registered.</t>
                                <a href="[n.forgot_password_path/]"><t>Forgot your password?</t></a>
                            </n.exception.>
                            <n.exception. name="invalid_captcha_code">
                                <t>The validation code did not match the picture.</t>
                            </n.exception.>
                            <n.exception. name="empty_registration_field">
                                <t>You must fill in all fields below.</t>
                            </n.exception.>
                            <n.exception. name="must_accept_terms_of_use">
                                <t>You must agree to the Terms of Use.</t>
                            </n.exception.>
                            <n.exception. name="invalid_email">
                                <t>Enter a valid email address.</t>
                            </n.exception.>
                            <n.exception. name="passwords_dont_match">
                                <t>The password fields don't match.</t>
                            </n.exception.>
                            <n.exception. name="user_name_already_in_use">
                                <t>This user name is already in use.</t>
                            </n.exception.>
                        </div>
                    </n.handle_exception.>
                </then>
            </n.if.has_exception>
        </then>
    </n.if.is_submitted_form>
</override_macro>
Overrides default macro
... in register.naml
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<macro name="handle_registration_errors">
    <n.if.is_submitted_form>
        <then>
            <n.if.has_exception for="save-block">
                <then>
                    <n.handle_exception. for="save-block">
                        <div class="error-message important" style="margin:1em;padding:.5em 0">
                            <n.exception. name="user_already_registered">
                                <t>You have already been registered.</t>
                                <a href="[n.forgot_password_path/]"><t>Forgot your password?</t></a>
                            </n.exception.>
                            <n.exception. name="invalid_recaptcha">
                                <t>Please verify that you are not a robot.</t>
                            </n.exception.>
                            <n.exception. name="empty_registration_field">
                                <t>You must fill in all fields below.</t>
                            </n.exception.>
                            <n.exception. name="must_accept_terms_of_use">
                                <t>You must agree to the Terms of Use.</t>
                            </n.exception.>
                            <n.exception. name="invalid_email">
                                <t>Enter a valid email address.</t>
                            </n.exception.>
                            <n.exception. name="passwords_dont_match">
                                <t>The password fields don't match.</t>
                            </n.exception.>
                            <n.exception. name="user_name_already_in_use">
                                <t>This user name is already in use.</t>
                            </n.exception.>
                        </div>
                    </n.handle_exception.>
                </then>
            </n.if.has_exception>
        </then>
    </n.if.is_submitted_form>
</macro>