~vpzom/hitide

af6366c336ee4ded8200362adb3f9e7156601ec1 — Colin Reeder 28 days ago 3d1b91c
Add email field to signup page
2 files changed, 7 insertions(+), 0 deletions(-)

M res/lang/en.ftl
M src/routes/mod.rs
M res/lang/en.ftl => res/lang/en.ftl +1 -0
@@ 75,6 75,7 @@ score = { $score } { $score ->
    [one] like
    *[other] likes
}
signup_email_address_prompt = Email Address (optional):
sort = Sort:
sort_hot = hot
sort_new = new

M src/routes/mod.rs => src/routes/mod.rs +6 -0
@@ 1053,6 1053,12 @@ async fn page_signup_inner(
                            <MaybeFillInput values={&prev_values} r#type={"password"} name={"password"} required={true} id={"input_password"} />
                        </td>
                    </tr>
                    <tr>
                        <td><label for={"input_email_address"}>{lang.tr("signup_email_address_prompt", None)}</label></td>
                        <td>
                            <MaybeFillInput values={&prev_values} r#type={"email"} name={"email_address"} required={false} id={"input_email_address"} />
                        </td>
                    </tr>
                </table>
                <button r#type={"submit"}>{lang.tr("register", None)}</button>
            </form>