Files
tryton/email_reset_password.html
T
Nicolas Évrard 462d735291 Set request parameters with input fields
Per the form submission specification of HTML5 the request parameters must be
specified with input fields because they are discarded from the URL when
submitting the form.

https://www.w3.org/TR/2011/WD-html5-20110525/association-of-controls-and-forms.html#form-submission-algorithm

issue6542
review41351002
2017-06-13 13:59:13 +02:00

37 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html xmlns:py="http://genshi.edgewall.org/">
<head>
<title>Reset Password</title>
</head>
<body>
<py:for each="user in records">
<div style="display: block; text-align: center">
<div>
<h1>Reset Password</h1>
<p>We received a request to reset the password for your account,
${user.email}</p>
<form action="${user.get_email_reset_password_url()}">
<py:for each="name, value in extract_params(user.get_email_reset_password_url())">
<input type="hidden" name="${name}" value="${value}"/>
</py:for>
<button type="submit"
style="cursor:pointer;
padding: 0.5em 1em; font-size:2em;
border: 1px solid #2E6DA4; border-radius: 4px;
color: #FFF; background-color: #337AB7;">
Reset Password
</button>
</form>
</div>
<hr style="margin-top: 20px;
border-style: solid none none; border-color: #EEE"></hr>
<div style="font-size: 80%; color: #777">
<p>Button is not working? Paste this into your browser:</p>
<p>${user.get_email_reset_password_url()}</p>
<p>If you didn't make this request, you can ignore this email.</p>
</div>
</div>
</py:for>
</body>
</html>