emailengine-app 2.79.6 → 2.79.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +32 -0
- package/DOCKER_DEPLOYMENT.md +2 -0
- package/bin/emailengine.js +29 -13
- package/config/default.toml +13 -3
- package/data/google-crawlers.json +7 -1
- package/docker-compose.yml +12 -3
- package/install.sh +2 -0
- package/lib/api-routes/account-routes.js +14 -3
- package/lib/api-routes/mailbox-routes.js +4 -1
- package/lib/api-routes/message-routes.js +6 -5
- package/lib/api-routes/outbox-routes.js +7 -4
- package/lib/api-routes/settings-routes.js +34 -25
- package/lib/api-routes/stats-routes.js +8 -1
- package/lib/api-routes/submit-routes.js +2 -1
- package/lib/api-routes/template-routes.js +3 -2
- package/lib/bounce-detect.js +45 -0
- package/lib/consts.js +9 -3
- package/lib/egress-filter.js +39 -4
- package/lib/email-client/base-client.js +274 -24
- package/lib/email-client/gmail/gmail-api.js +15 -7
- package/lib/email-client/gmail-client.js +121 -64
- package/lib/email-client/imap/mailbox.js +18 -59
- package/lib/email-client/imap-client.js +53 -29
- package/lib/email-client/notification-handler.js +11 -2
- package/lib/email-client/outlook/graph-api.js +106 -90
- package/lib/email-client/outlook-client.js +222 -106
- package/lib/generate-text-preview.js +10 -5
- package/lib/headers-rewriter.js +1 -1
- package/lib/llm-pre-process.js +4 -1
- package/lib/mcp/json-schema.js +50 -2
- package/lib/outbox.js +22 -5
- package/lib/passkeys.js +39 -7
- package/lib/pre-process.js +4 -1
- package/lib/rewrite-text-nodes.js +12 -1
- package/lib/schemas.js +27 -5
- package/lib/settings.js +19 -1
- package/lib/sso.js +60 -7
- package/lib/submit-progress.js +29 -0
- package/lib/templates.js +11 -0
- package/lib/tools.js +115 -53
- package/lib/ui-routes/account-routes.js +79 -12
- package/lib/ui-routes/admin-config-routes.js +7 -21
- package/lib/ui-routes/admin-entities-routes.js +42 -12
- package/lib/ui-routes/auth-routes.js +242 -87
- package/lib/ui-routes/dashboard-routes.js +1 -1
- package/lib/ui-routes/internals-routes.js +2 -0
- package/lib/ui-routes/mcp-consent-routes.js +5 -2
- package/lib/ui-routes/network-config-routes.js +12 -3
- package/lib/ui-routes/oauth-config-routes.js +12 -1
- package/lib/ui-routes/route-helpers.js +41 -6
- package/lib/ui-routes/settings-page.js +10 -0
- package/lib/ui-routes/suppression-list-routes.js +16 -5
- package/lib/ui-routes/unsubscribe-routes.js +22 -3
- package/lib/webhooks.js +14 -2
- package/package.json +17 -17
- package/sbom.json +1 -1
- package/server.js +63 -35
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +55 -0
- package/static/js/app.js +4 -35
- package/static/js/passkey-register.js +50 -1
- package/static/js/public.js +128 -0
- package/static/js/ui.js +183 -6
- package/static/licenses.html +371 -770
- package/translations/messages.pot +66 -66
- package/views/account/passkeys.hbs +141 -0
- package/views/account/password.hbs +11 -0
- package/views/account/security.hbs +318 -326
- package/views/accounts/account.hbs +90 -115
- package/views/accounts/register/imap-server.hbs +18 -12
- package/views/config/ai.hbs +2 -0
- package/views/config/branding.hbs +2 -0
- package/views/config/document-store/index.hbs +6 -6
- package/views/config/email-processing.hbs +2 -0
- package/views/config/imap-proxy.hbs +2 -0
- package/views/config/license.hbs +4 -1
- package/views/config/logging.hbs +3 -1
- package/views/config/mcp.hbs +2 -0
- package/views/config/network.hbs +2 -0
- package/views/config/oauth/app.hbs +3 -3
- package/views/config/oauth/edit.hbs +1 -1
- package/views/config/oauth/new.hbs +1 -1
- package/views/config/security.hbs +2 -0
- package/views/config/service.hbs +2 -0
- package/views/config/smtp.hbs +2 -0
- package/views/config/webhooks.hbs +9 -6
- package/views/error.hbs +6 -0
- package/views/layout/app.hbs +6 -3
- package/views/layout/login.hbs +1 -1
- package/views/layout/prompt.hbs +1 -1
- package/views/layout/public.hbs +1 -1
- package/views/legal.hbs +1 -1
- package/views/partials/filter_editor_js.hbs +1 -1
- package/views/partials/gateway_js.hbs +7 -6
- package/views/partials/oauth_form.hbs +5 -5
- package/views/partials/ui/btn.hbs +8 -2
- package/views/partials/ui/confirm-modal.hbs +2 -3
- package/views/partials/ui/empty-state.hbs +25 -0
- package/views/partials/ui/env-managed-alert.hbs +19 -0
- package/views/partials/webhook_form.hbs +1 -1
- package/views/partials/webhooks_editor_functions.hbs +5 -5
- package/views/unsubscribe.hbs +6 -0
- package/workers/api.js +193 -81
- package/workers/imap.js +32 -3
- package/workers/smtp.js +7 -0
- package/workers/submit.js +25 -1
- package/workers/webhooks.js +13 -17
- package/lib/reconnection-manager.js +0 -106
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Content-Type: text/plain; charset=ascii\n"
|
|
4
|
-
"POT-Creation-Date: 2026-
|
|
4
|
+
"POT-Creation-Date: 2026-09-01 19:01+0000\n"
|
|
5
5
|
|
|
6
6
|
#: views/error.hbs:6
|
|
7
|
-
#: workers/api.js:
|
|
7
|
+
#: workers/api.js:3160
|
|
8
8
|
msgid "Something went wrong"
|
|
9
9
|
msgstr ""
|
|
10
10
|
|
|
@@ -56,48 +56,12 @@ msgstr ""
|
|
|
56
56
|
msgid "Try Again"
|
|
57
57
|
msgstr ""
|
|
58
58
|
|
|
59
|
-
#: views/
|
|
60
|
-
|
|
61
|
-
#: views/unsubscribe.hbs:75
|
|
62
|
-
msgid "Unsubscribe"
|
|
63
|
-
msgstr ""
|
|
64
|
-
|
|
65
|
-
#: views/unsubscribe.hbs:9
|
|
66
|
-
msgid "Your email address was unsubscribed."
|
|
67
|
-
msgstr ""
|
|
68
|
-
|
|
69
|
-
#: views/unsubscribe.hbs:11
|
|
70
|
-
msgid "Was this a mistake? Click <a%s>here</a> to re-subscribe."
|
|
71
|
-
msgstr ""
|
|
72
|
-
|
|
73
|
-
#: views/unsubscribe.hbs:18
|
|
74
|
-
msgid "Re-subscribe"
|
|
75
|
-
msgstr ""
|
|
76
|
-
|
|
77
|
-
#: views/unsubscribe.hbs:24
|
|
78
|
-
msgid "Are you sure you want to re-subscribe your email address <em>%s</em>?"
|
|
79
|
-
msgstr ""
|
|
80
|
-
|
|
81
|
-
#: views/unsubscribe.hbs:33
|
|
82
|
-
#: views/accounts/register/imap-server.hbs:278
|
|
83
|
-
msgid "Close"
|
|
84
|
-
msgstr ""
|
|
85
|
-
|
|
86
|
-
#: views/unsubscribe.hbs:35
|
|
87
|
-
msgid "Subscribe"
|
|
88
|
-
msgstr ""
|
|
89
|
-
|
|
90
|
-
#: views/unsubscribe.hbs:54
|
|
91
|
-
msgid "Subscription resumed"
|
|
92
|
-
msgstr ""
|
|
93
|
-
|
|
94
|
-
#: views/unsubscribe.hbs:56
|
|
95
|
-
msgid "Your email address <em>%s</em> was re-subscribed."
|
|
59
|
+
#: views/accounts/register/index.hbs:6
|
|
60
|
+
msgid "Choose your email account provider"
|
|
96
61
|
msgstr ""
|
|
97
62
|
|
|
98
|
-
#: views/
|
|
99
|
-
|
|
100
|
-
msgid "Email address"
|
|
63
|
+
#: views/accounts/register/index.hbs:19
|
|
64
|
+
msgid "Standard IMAP"
|
|
101
65
|
msgstr ""
|
|
102
66
|
|
|
103
67
|
#: views/accounts/register/imap.hbs:13
|
|
@@ -108,6 +72,11 @@ msgstr ""
|
|
|
108
72
|
msgid "Enter your full name"
|
|
109
73
|
msgstr ""
|
|
110
74
|
|
|
75
|
+
#: views/accounts/register/imap.hbs:25
|
|
76
|
+
#: views/unsubscribe.hbs:70
|
|
77
|
+
msgid "Email address"
|
|
78
|
+
msgstr ""
|
|
79
|
+
|
|
111
80
|
#: views/accounts/register/imap.hbs:35
|
|
112
81
|
msgid "This setup link is restricted to this email address"
|
|
113
82
|
msgstr ""
|
|
@@ -130,14 +99,6 @@ msgstr ""
|
|
|
130
99
|
msgid "Continue"
|
|
131
100
|
msgstr ""
|
|
132
101
|
|
|
133
|
-
#: views/accounts/register/index.hbs:6
|
|
134
|
-
msgid "Choose your email account provider"
|
|
135
|
-
msgstr ""
|
|
136
|
-
|
|
137
|
-
#: views/accounts/register/index.hbs:19
|
|
138
|
-
msgid "Standard IMAP"
|
|
139
|
-
msgstr ""
|
|
140
|
-
|
|
141
102
|
#: views/accounts/register/imap-server.hbs:22
|
|
142
103
|
msgid "IMAP"
|
|
143
104
|
msgstr ""
|
|
@@ -226,31 +187,70 @@ msgstr ""
|
|
|
226
187
|
msgid "We couldn't connect with these settings. Check the errors below."
|
|
227
188
|
msgstr ""
|
|
228
189
|
|
|
229
|
-
#: views/accounts/register/imap-server.hbs:
|
|
190
|
+
#: views/accounts/register/imap-server.hbs:278
|
|
191
|
+
#: views/unsubscribe.hbs:33
|
|
192
|
+
msgid "Close"
|
|
193
|
+
msgstr ""
|
|
194
|
+
|
|
195
|
+
#: views/accounts/register/imap-server.hbs:405
|
|
230
196
|
msgid "Error"
|
|
231
197
|
msgstr ""
|
|
232
198
|
|
|
233
|
-
#: views/accounts/register/imap-server.hbs:
|
|
199
|
+
#: views/accounts/register/imap-server.hbs:407
|
|
234
200
|
msgid "Invalid settings"
|
|
235
201
|
msgstr ""
|
|
236
202
|
|
|
237
|
-
#: views/accounts/register/imap-server.hbs:
|
|
203
|
+
#: views/accounts/register/imap-server.hbs:413
|
|
238
204
|
msgid "Couldn't connect to IMAP server"
|
|
239
205
|
msgstr ""
|
|
240
206
|
|
|
241
|
-
#: views/accounts/register/imap-server.hbs:
|
|
242
|
-
#: views/accounts/register/imap-server.hbs:
|
|
207
|
+
#: views/accounts/register/imap-server.hbs:415
|
|
208
|
+
#: views/accounts/register/imap-server.hbs:424
|
|
243
209
|
msgid "Server response:"
|
|
244
210
|
msgstr ""
|
|
245
211
|
|
|
246
|
-
#: views/accounts/register/imap-server.hbs:
|
|
212
|
+
#: views/accounts/register/imap-server.hbs:422
|
|
247
213
|
msgid "Couldn't connect to SMTP server"
|
|
248
214
|
msgstr ""
|
|
249
215
|
|
|
250
|
-
#: views/accounts/register/imap-server.hbs:
|
|
216
|
+
#: views/accounts/register/imap-server.hbs:481
|
|
251
217
|
msgid "Request failed."
|
|
252
218
|
msgstr ""
|
|
253
219
|
|
|
220
|
+
#: views/unsubscribe.hbs:7
|
|
221
|
+
#: views/unsubscribe.hbs:60
|
|
222
|
+
#: views/unsubscribe.hbs:75
|
|
223
|
+
msgid "Unsubscribe"
|
|
224
|
+
msgstr ""
|
|
225
|
+
|
|
226
|
+
#: views/unsubscribe.hbs:9
|
|
227
|
+
msgid "Your email address was unsubscribed."
|
|
228
|
+
msgstr ""
|
|
229
|
+
|
|
230
|
+
#: views/unsubscribe.hbs:11
|
|
231
|
+
msgid "Was this a mistake? Click <a%s>here</a> to re-subscribe."
|
|
232
|
+
msgstr ""
|
|
233
|
+
|
|
234
|
+
#: views/unsubscribe.hbs:18
|
|
235
|
+
msgid "Re-subscribe"
|
|
236
|
+
msgstr ""
|
|
237
|
+
|
|
238
|
+
#: views/unsubscribe.hbs:24
|
|
239
|
+
msgid "Are you sure you want to re-subscribe your email address <em>%s</em>?"
|
|
240
|
+
msgstr ""
|
|
241
|
+
|
|
242
|
+
#: views/unsubscribe.hbs:35
|
|
243
|
+
msgid "Subscribe"
|
|
244
|
+
msgstr ""
|
|
245
|
+
|
|
246
|
+
#: views/unsubscribe.hbs:54
|
|
247
|
+
msgid "Subscription resumed"
|
|
248
|
+
msgstr ""
|
|
249
|
+
|
|
250
|
+
#: views/unsubscribe.hbs:56
|
|
251
|
+
msgid "Your email address <em>%s</em> was re-subscribed."
|
|
252
|
+
msgstr ""
|
|
253
|
+
|
|
254
254
|
#: views/account-identity-error.hbs:7
|
|
255
255
|
msgid "Wrong Email Account"
|
|
256
256
|
msgstr ""
|
|
@@ -283,19 +283,19 @@ msgid ""
|
|
|
283
283
|
"connect your account."
|
|
284
284
|
msgstr ""
|
|
285
285
|
|
|
286
|
-
#: lib/tools.js:
|
|
286
|
+
#: lib/tools.js:1348
|
|
287
287
|
#: lib/ui-routes/unsubscribe-routes.js:29
|
|
288
288
|
#: lib/ui-routes/unsubscribe-routes.js:93
|
|
289
289
|
msgid "Invalid input"
|
|
290
290
|
msgstr ""
|
|
291
291
|
|
|
292
|
-
#: lib/tools.js:
|
|
292
|
+
#: lib/tools.js:2198
|
|
293
293
|
msgid "Signature validation failed"
|
|
294
294
|
msgstr ""
|
|
295
295
|
|
|
296
|
-
#: lib/tools.js:
|
|
297
|
-
#: lib/tools.js:
|
|
298
|
-
#: lib/tools.js:
|
|
296
|
+
#: lib/tools.js:2221
|
|
297
|
+
#: lib/tools.js:2227
|
|
298
|
+
#: lib/tools.js:2232
|
|
299
299
|
#: lib/ui-routes/account-routes.js:1100
|
|
300
300
|
msgid "Invalid or expired account setup URL"
|
|
301
301
|
msgstr ""
|
|
@@ -307,8 +307,8 @@ msgstr ""
|
|
|
307
307
|
#: lib/ui-routes/account-routes.js:860
|
|
308
308
|
#: lib/ui-routes/account-routes.js:1213
|
|
309
309
|
#: lib/ui-routes/route-helpers.js:374
|
|
310
|
-
#: workers/api.js:
|
|
311
|
-
#: workers/api.js:
|
|
310
|
+
#: workers/api.js:2345
|
|
311
|
+
#: workers/api.js:2415
|
|
312
312
|
msgid "Email Account Setup"
|
|
313
313
|
msgstr ""
|
|
314
314
|
|
|
@@ -429,7 +429,7 @@ msgstr ""
|
|
|
429
429
|
msgid "Couldn't process request. Try again."
|
|
430
430
|
msgstr ""
|
|
431
431
|
|
|
432
|
-
#: workers/api.js:
|
|
433
|
-
#: workers/api.js:
|
|
432
|
+
#: workers/api.js:3159
|
|
433
|
+
#: workers/api.js:3263
|
|
434
434
|
msgid "Requested page not found"
|
|
435
435
|
msgstr ""
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{{> security_header}}
|
|
2
|
+
|
|
3
|
+
{{> ui/breadcrumb parentHref="/admin/account/security" parentLabel="Account Security" current="Passkeys" class="mt-6 mb-6"}}
|
|
4
|
+
|
|
5
|
+
{{!-- A page of its own rather than a block on the security page: that page is an inventory of
|
|
6
|
+
the ways into the account, one row each, and a credential list that grows to twenty rows
|
|
7
|
+
would take it over. The row there summarizes and links here. --}}
|
|
8
|
+
<div class="card bg-base-100 shadow-md mb-6">
|
|
9
|
+
<div class="card-header flex flex-wrap items-start justify-between gap-3">
|
|
10
|
+
<div>
|
|
11
|
+
<h6 class="card-title text-primary">Passkeys</h6>
|
|
12
|
+
<p class="text-base-content/60 mb-0 text-sm">Sign in with Touch ID, Windows Hello or a security key. A
|
|
13
|
+
passkey is a complete sign-in on its own - no password and no verification code.</p>
|
|
14
|
+
{{#if passkeys.length}}
|
|
15
|
+
{{!-- The RP ID is read from the Service URL on every ceremony, so a changed hostname
|
|
16
|
+
strands every passkey below while the login page still offers the button - this
|
|
17
|
+
is where an operator learns why --}}
|
|
18
|
+
<p class="text-base-content/60 mb-0 mt-1 text-sm">Registered for <strong>{{rpId}}</strong>, the hostname
|
|
19
|
+
of the Service URL. If that hostname changes, these passkeys stop working and have to be registered
|
|
20
|
+
again.</p>
|
|
21
|
+
{{/if}}
|
|
22
|
+
</div>
|
|
23
|
+
{{!-- ui/tooltip renders bare when the text is empty, so the same call covers both the
|
|
24
|
+
live button and the one disabled with the reason on it --}}
|
|
25
|
+
{{#> ui/tooltip text=passkeyBlockReason placement="left"}}
|
|
26
|
+
{{> ui/btn label="Add passkey" variant="primary" style="outline" size="sm" id="register-passkey-btn"
|
|
27
|
+
icon="icon-[tabler--plus]" disabled=passkeyBlockReason}}
|
|
28
|
+
{{/ui/tooltip}}
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
{{#if passkeys.length}}
|
|
32
|
+
<div class="overflow-x-auto">
|
|
33
|
+
<table class="table">
|
|
34
|
+
<thead>
|
|
35
|
+
<tr>
|
|
36
|
+
<th>Passkey</th>
|
|
37
|
+
<th>Added</th>
|
|
38
|
+
<th>Last used</th>
|
|
39
|
+
<th class="w-12"><span class="sr-only">Actions</span></th>
|
|
40
|
+
</tr>
|
|
41
|
+
</thead>
|
|
42
|
+
|
|
43
|
+
<tbody>
|
|
44
|
+
{{#each passkeys}}
|
|
45
|
+
<tr class="hover:bg-base-200/60">
|
|
46
|
+
<td>
|
|
47
|
+
<div class="flex items-center gap-3">
|
|
48
|
+
<span
|
|
49
|
+
class="bg-base-200 text-base-content/70 flex size-9 shrink-0 items-center justify-center rounded-lg">
|
|
50
|
+
<span class="{{deviceIcon}} size-5"></span>
|
|
51
|
+
</span>
|
|
52
|
+
<div class="min-w-0">
|
|
53
|
+
<strong class="block">{{name}}</strong>
|
|
54
|
+
<span class="text-base-content/60 text-xs">{{deviceLabel}}</span>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</td>
|
|
58
|
+
|
|
59
|
+
<td>
|
|
60
|
+
{{#if createdAt}}
|
|
61
|
+
<span class="text-base-content/60 relative-time" data-time="{{createdAt}}"
|
|
62
|
+
title="{{createdAt}}"></span>
|
|
63
|
+
{{else}}
|
|
64
|
+
<span class="text-base-content/60">-</span>
|
|
65
|
+
{{/if}}
|
|
66
|
+
</td>
|
|
67
|
+
|
|
68
|
+
<td>
|
|
69
|
+
{{#if lastUsedAt}}
|
|
70
|
+
<span class="relative-time" data-time="{{lastUsedAt}}" title="{{lastUsedAt}}"></span>
|
|
71
|
+
{{else}}
|
|
72
|
+
{{!-- Not "Never": a credential registered before sign-ins were stamped carries
|
|
73
|
+
no timestamp either, and calling a passkey in daily use unused would
|
|
74
|
+
invite removing the wrong one --}}
|
|
75
|
+
<span class="text-base-content/60">-</span>
|
|
76
|
+
{{/if}}
|
|
77
|
+
</td>
|
|
78
|
+
|
|
79
|
+
<td class="relative text-end">
|
|
80
|
+
{{> ui/row-actions label="Passkey actions" deleteLabel="Remove" deleteModal="#deletePasskey"
|
|
81
|
+
deleteId=id deleteName=name}}
|
|
82
|
+
</td>
|
|
83
|
+
</tr>
|
|
84
|
+
{{/each}}
|
|
85
|
+
</tbody>
|
|
86
|
+
</table>
|
|
87
|
+
</div>
|
|
88
|
+
{{else}}
|
|
89
|
+
<div class="card-body">
|
|
90
|
+
{{!-- The condition sits OUTSIDE the ui/empty-state block on purpose: a partial block
|
|
91
|
+
whose content is nothing but a {{#if}} wrapper loses its content to a Handlebars
|
|
92
|
+
program-association bug. Keep the block's first content token static. --}}
|
|
93
|
+
{{#if serviceUrl}}
|
|
94
|
+
{{#> ui/empty-state icon="icon-[tabler--fingerprint]" title="No passkeys registered"}}
|
|
95
|
+
Register this device to sign in without typing a password or a verification code.
|
|
96
|
+
{{/ui/empty-state}}
|
|
97
|
+
{{else}}
|
|
98
|
+
{{#> ui/empty-state icon="icon-[tabler--fingerprint]" title="No passkeys registered"}}
|
|
99
|
+
A passkey is bound to the hostname EmailEngine is served from, so set a <a href="/admin/config/service"
|
|
100
|
+
class="link link-animated">Service URL</a> before registering one.
|
|
101
|
+
{{/ui/empty-state}}
|
|
102
|
+
{{/if}}
|
|
103
|
+
</div>
|
|
104
|
+
{{/if}}
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
{{#> ui/confirm-modal id="deletePasskey" title="Remove passkey" action="/admin/account/passkeys/delete" fieldName="credentialId" fieldClass="delete-target-id" submitLabel="Remove passkey"}}
|
|
108
|
+
Are you sure you want to remove <strong class="delete-target-name"></strong>? You will no longer be able to sign in with this passkey.
|
|
109
|
+
{{/ui/confirm-modal}}
|
|
110
|
+
|
|
111
|
+
{{#> ui/modal id="registerPasskeyModal" title="Register a new passkey" titleId="registerPasskeyModalLabel"}}
|
|
112
|
+
<div class="modal-body space-y-4">
|
|
113
|
+
<div>
|
|
114
|
+
{{!-- The route reaching this page requires a configured account password, so the
|
|
115
|
+
confirmation field is unconditional here - registration verifies it server-side --}}
|
|
116
|
+
{{#> ui/form-field id="passkey-current-password" label="Current password"}}
|
|
117
|
+
<input type="password" class="input" id="passkey-current-password" placeholder="Enter your current password"
|
|
118
|
+
maxlength="256" autocomplete="current-password" />
|
|
119
|
+
<span class="helper-text">Confirm your identity before registering a new passkey.</span>
|
|
120
|
+
{{/ui/form-field}}
|
|
121
|
+
</div>
|
|
122
|
+
<div>
|
|
123
|
+
{{#> ui/form-field id="passkey-name" label="Passkey name"}}
|
|
124
|
+
<input type="text" class="input" id="passkey-name" placeholder="e.g., MacBook Touch ID" maxlength="100" />
|
|
125
|
+
<span class="helper-text">A friendly name to help you identify this passkey.</span>
|
|
126
|
+
{{/ui/form-field}}
|
|
127
|
+
</div>
|
|
128
|
+
<div id="passkey-register-error" class="text-error text-sm hidden"></div>
|
|
129
|
+
<div id="passkey-register-success" class="text-success text-sm hidden">
|
|
130
|
+
Passkey registered successfully.
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="modal-footer">
|
|
134
|
+
<input type="hidden" id="security-crumb" value="{{crumb}}" />
|
|
135
|
+
{{> ui/btn label="Cancel" variant="neutral" style="soft" overlay="#registerPasskeyModal"}}
|
|
136
|
+
{{> ui/btn label="Register passkey" id="passkey-register-confirm-btn"}}
|
|
137
|
+
</div>
|
|
138
|
+
{{/ui/modal}}
|
|
139
|
+
|
|
140
|
+
<script src="/static/vendor/simplewebauthn/browser.min.js"></script>
|
|
141
|
+
<script src="/static/js/passkey-register.js"></script>
|
|
@@ -29,6 +29,17 @@
|
|
|
29
29
|
{{/ui/form-field}}
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
+
{{#if passkeyCount}}
|
|
33
|
+
{{!-- The route removes every passkey with the old password (see the POST handler for
|
|
34
|
+
why), which the person at this form has to know before they submit it --}}
|
|
35
|
+
<div class="alert alert-soft alert-warning text-sm">
|
|
36
|
+
<span class="icon-[tabler--alert-triangle] size-5 shrink-0"></span>
|
|
37
|
+
<span>Changing the password removes {{#equals passkeyCount 1}}the registered passkey{{else}}all
|
|
38
|
+
{{passkeyCount}} registered passkeys{{/equals}}. Register them again afterwards to keep signing in
|
|
39
|
+
with them.</span>
|
|
40
|
+
</div>
|
|
41
|
+
{{/if}}
|
|
42
|
+
|
|
32
43
|
{{#if authData.enabled}}
|
|
33
44
|
<div>
|
|
34
45
|
{{#> ui/form-field id="password0" label="Current password" error=errors.password0}}
|