forgot password: send emails
This commit is contained in:
parent
751a21485f
commit
feb9f16bc9
10 changed files with 676 additions and 18 deletions
50
crates/email/templates/password-reset.mjml.tera
Normal file
50
crates/email/templates/password-reset.mjml.tera
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<mjml>
|
||||
<mj-head>
|
||||
<mj-title>{{ title }}</mj-title>
|
||||
<mj-attributes>
|
||||
<mj-all font-family="Arial"/>
|
||||
<mj-text align="center"/>
|
||||
</mj-attributes>
|
||||
</mj-head>
|
||||
<mj-body background-color="#eee">
|
||||
<mj-section>
|
||||
<mj-column>
|
||||
<mj-image width="100px" src="{{ logo_url }}" alt="business logo"/>
|
||||
<mj-divider border-color="#3a88fe"/>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
<mj-section background-color="#fff">
|
||||
<mj-column>
|
||||
<mj-text>
|
||||
<h2>Reset password</h2>
|
||||
<p>You recently requested to reset the password of your ezidam account.</p>
|
||||
<p>Use the button below to reset it. This message will expire in {{ token_duration }} minutes.</p>
|
||||
</mj-text>
|
||||
<mj-button href="{{ reset_password_url }}" background-color="#3a88fe">Reset your password</mj-button>
|
||||
<mj-text>
|
||||
<p>Can't click on the button? Use the link below:</p>
|
||||
<a href="{{ reset_password_url }}">{{ reset_password_url }}</a>
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
<mj-section>
|
||||
<mj-column>
|
||||
<mj-text>
|
||||
<p>{{ user_email }}</p>
|
||||
<p>{{ now(utc=true) | date(format="%F %T %Z", timezone=user_timezone | default(value="UTC")) }}</p>
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
<mj-section>
|
||||
<mj-column>
|
||||
<mj-text color="#696969" font-size="10px">
|
||||
<p>ezidam {{ ezidam_version }}</p>
|
||||
<p>Copyright ©
|
||||
{{ now(utc=true) | date(format="%Y", timezone=user_timezone | default(value="UTC")) }}
|
||||
<a href="https://philippeloctaux.com">philt3r technologies</a>
|
||||
</p>
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
Loading…
Add table
Add a link
Reference in a new issue