1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
4 |
Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
it under the terms of the GNU General Public License as published by
|
|
|
6 |
the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
(at your option) any later version.
|
|
|
8 |
|
|
|
9 |
Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
GNU General Public License for more details.
|
|
|
13 |
|
|
|
14 |
You should have received a copy of the GNU General Public License
|
|
|
15 |
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template factor_email/email
|
|
|
19 |
|
|
|
20 |
Template for email body sent to users.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"message": "Your verification code is 123456.",
|
|
|
25 |
"ip": "The IP was 127.0.0.1",
|
|
|
26 |
"geoinfo": "Request originated from Brisbane, Australia",
|
|
|
27 |
"ua": "The user agent is Firefox 70",
|
|
|
28 |
"linkstring": "If this wasn't you, click here"
|
|
|
29 |
}
|
|
|
30 |
}}
|
|
|
31 |
<div style="font-family: Arial, sans-serif; font-size: 18px">
|
|
|
32 |
{{#logo}}
|
|
|
33 |
<table style="width: 600px; margin-bottom: 10px;">
|
|
|
34 |
<tr>
|
|
|
35 |
<td></td>
|
|
|
36 |
<td style="text-align: right;">
|
|
|
37 |
<img src="{{{logo}}}" alt="{{sitename}}" />
|
|
|
38 |
</td>
|
|
|
39 |
</tr>
|
|
|
40 |
</table>
|
|
|
41 |
{{/logo}}
|
|
|
42 |
<p>{{#str}} email:greeting, factor_email, {{name}}{{/str}}</p>
|
|
|
43 |
<p>
|
|
|
44 |
{{#str}} email:message, factor_email, {"sitename":{{#quote}}{{sitename}}{{/quote}}, "siteurl":{{#quote}}{{siteurl}}{{/quote}} }{{/str}}
|
|
|
45 |
</p>
|
|
|
46 |
<h2 style="letter-spacing: 5px;">{{code}}</h2>
|
|
|
47 |
<p>
|
|
|
48 |
{{#str}} email:validity, factor_email, {{validity}}{{/str}}
|
|
|
49 |
<br/>
|
|
|
50 |
{{{authlink}}}
|
|
|
51 |
</p>
|
|
|
52 |
<br/>
|
|
|
53 |
<p>{{{revokelink}}}</p>
|
|
|
54 |
<br/>
|
|
|
55 |
<div style="font-family: Arial, sans-serif; font-size: 12px">
|
|
|
56 |
<p><strong>{{#str}} email:ipinfo, factor_email {{/str}}</strong></p>
|
|
|
57 |
<p>{{#str}} email:originatingip, factor_email, {{ip}} {{/str}}</p>
|
|
|
58 |
{{#geocountry}}
|
|
|
59 |
<p> {{#str}} email:geoinfo, factor_email {{/str}}{{#geocity}}{{geocity}},{{/geocity}} {{geocountry}}</p>
|
|
|
60 |
{{/geocountry}}
|
|
|
61 |
<p><strong>{{#str}} email:uadescription, factor_email {{/str}}</strong></p>
|
|
|
62 |
<p>{{ua}}</p>
|
|
|
63 |
<p>{{{linkstring}}}</p>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|