You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 681378b
Browse filesBrowse the repository at this point in the historyBrowse files
The code arrived as five lines of unstyled text, with nothing in it to say which
wiki had sent it or that the eight digits in the middle were the point. It read
like something to be deleted unread, which is a poor start for the one message
standing between a member and their account.
Send it as a formatted part with a plain-text alternative: the wiki's name, the
code set apart in a panel of its own, how long it lasts, and what to do if it was
not you. The plain part carries the same code and the same warning rather than a
note that the mail is better read elsewhere, since for many wikis it is the only
part that ships.
The formatted part is a Mustache template, so what it looks like is changed by
editing markup rather than by concatenating strings in PHP. It is table layout and
inline styles throughout, because a mail client is not a browser and the classic
Outlook still in use across the companies this extension serves lays out with
Word's engine. Every string reaches it already localised, and Mustache escapes what
it interpolates, so a wiki's site name cannot carry markup into the mail.
Nothing in it is fetched from the network. No link, since a login mail that trains
its reader to click one is a phishing template with a head start, and no image,
since clients block remote ones by default and would show a broken box where a logo
went.
MediaWiki keeps the formatted part only where $wgAllowHTMLEmail is on, which it is
not by default. That setting governs every mail a wiki sends, so it is recommended
in the README rather than set here, which is what Echo does with it too.
The code is shown in groups of four so it can be held in the head between the mail
and the form. That is a display alone: a member who copies the spaces along with
the digits is no longer refused their own code.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: i18n/en.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@
6
6
},
7
7
"memberaccess-description": "Members-only wiki access with email one-time-code login and an allowlist of addresses and domains",
8
8
"memberaccess-code-email-subject": "Your login code for {{SITENAME}}",
9
-
"memberaccess-code-email-body": "Your login code for {{SITENAME}} is:\n\n$1\n\nThe code is valid for $2 {{PLURAL:$2|minute|minutes}} and can be used once.\n\nIf you did not request a login code, you can ignore this message.",
9
+
"memberaccess-code-email-site": "{{SITENAME}}",
10
+
"memberaccess-code-email-intro": "Here is your login code.",
11
+
"memberaccess-code-email-validity": "It works once, and stops working in $1 {{PLURAL:$1|minute|minutes}}.",
12
+
"memberaccess-code-email-disclaimer": "If you did not ask to log in to {{SITENAME}}, nothing has happened and you can ignore this message.",
13
+
"memberaccess-code-email-body": "Here is your login code for {{SITENAME}}:\n\n $1\n\nIt works once, and stops working in $2 {{PLURAL:$2|minute|minutes}}.\n\nIf you did not ask to log in to {{SITENAME}}, nothing has happened and you can ignore this message.",
10
14
"memberaccess-auth-button-label": "Email me a login code",
11
15
"memberaccess-auth-button-help": "We send a one-time code to your email address. Nothing beyond your email address is requested.",
"memberaccess-code-email-subject": "Subject line of the email carrying a one-time login code.",
9
-
"memberaccess-code-email-body": "Plain text body of the email carrying a one-time login code.\n\nParameters:\n* $1 - the login code\n* $2 - the number of minutes the code stays valid",
9
+
"memberaccess-code-email-site": "The name of the wiki, shown at the top of the email carrying a login code. Its own message so that a wiki can put something other than {{msg-mw|Sitename}} on its mail.",
10
+
"memberaccess-code-email-intro": "First line of the email carrying a login code, above the code itself.",
11
+
"memberaccess-code-email-validity": "Line below the login code saying how long it lasts. Parameters:\n* $1 - the number of minutes the code stays valid",
12
+
"memberaccess-code-email-disclaimer": "Closing line of the email carrying a login code, for someone who did not ask for one.",
13
+
"memberaccess-code-email-body": "Plain text alternative of the email carrying a one-time login code, shown by mail clients that do not display the formatted part. Parameters:\n* $1 - the login code, in groups of four digits\n* $2 - the number of minutes the code stays valid",
10
14
"memberaccess-auth-button-label": "Label of the button on the login form that asks for a login code to be mailed.",
11
15
"memberaccess-auth-button-help": "Help text below the button that asks for a login code to be mailed. \"Nothing beyond your email address is requested\" is a commitment: keep the meaning \"asked for\", and do not turn it into \"stored\".",
12
16
"memberaccess-auth-email-label": "Label of the email address field.",
0 commit comments