##// END OF EJS Templates
login: Fix password reset mail link....
login: Fix password reset mail link. - Pyramid needs the request object to generate an URL. - Therefore we generate the URL in the view and pass it to the model to send the email.

File last commit:

r1:854a839a default
r37:0ef0b0cc default
Show More
password_reset.mako
23 lines | 609 B | application/x-mako | MakoHtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="base.mako"/>
<%def name="subject()" filter="n,trim">
RhodeCode Password reset
</%def>
## plain text version of the email. Empty by default
<%def name="body_plaintext()" filter="n,trim">
Hi ${user.username},
There was a request to reset your password using the email address ${email} on ${h.format_date(date)}
*If you didn't do this, please contact your RhodeCode administrator.*
You can continue, and generate new password by clicking following URL:
${password_reset_url}
</%def>
## BODY GOES BELOW
<div style="white-space: pre-wrap">
${body_plaintext()}
</div>