emailengine-app 2.79.6 → 2.79.7
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 +15 -0
- package/data/google-crawlers.json +1 -1
- package/lib/consts.js +4 -2
- package/lib/passkeys.js +39 -7
- package/lib/sso.js +47 -4
- package/lib/tools.js +19 -0
- package/lib/ui-routes/account-routes.js +9 -1
- package/lib/ui-routes/auth-routes.js +158 -62
- package/lib/ui-routes/network-config-routes.js +10 -1
- package/package.json +17 -17
- package/sbom.json +1 -1
- 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 +18 -18
- package/views/account/passkeys.hbs +133 -0
- package/views/account/security.hbs +300 -319
- package/views/accounts/account.hbs +84 -114
- package/views/accounts/register/imap-server.hbs +8 -10
- package/views/config/document-store/index.hbs +6 -6
- package/views/config/license.hbs +4 -1
- package/views/config/oauth/app.hbs +1 -1
- package/views/config/oauth/edit.hbs +1 -1
- package/views/config/oauth/new.hbs +1 -1
- package/views/config/webhooks.hbs +7 -6
- package/views/partials/gateway_js.hbs +7 -6
- 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/webhooks_editor_functions.hbs +5 -5
- package/workers/api.js +56 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Content-Type: text/plain; charset=ascii\n"
|
|
4
|
-
"POT-Creation-Date: 2026-08-
|
|
4
|
+
"POT-Creation-Date: 2026-08-31 16:45+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
|
|
|
@@ -226,28 +226,28 @@ msgstr ""
|
|
|
226
226
|
msgid "We couldn't connect with these settings. Check the errors below."
|
|
227
227
|
msgstr ""
|
|
228
228
|
|
|
229
|
-
#: views/accounts/register/imap-server.hbs:
|
|
229
|
+
#: views/accounts/register/imap-server.hbs:405
|
|
230
230
|
msgid "Error"
|
|
231
231
|
msgstr ""
|
|
232
232
|
|
|
233
|
-
#: views/accounts/register/imap-server.hbs:
|
|
233
|
+
#: views/accounts/register/imap-server.hbs:407
|
|
234
234
|
msgid "Invalid settings"
|
|
235
235
|
msgstr ""
|
|
236
236
|
|
|
237
|
-
#: views/accounts/register/imap-server.hbs:
|
|
237
|
+
#: views/accounts/register/imap-server.hbs:413
|
|
238
238
|
msgid "Couldn't connect to IMAP server"
|
|
239
239
|
msgstr ""
|
|
240
240
|
|
|
241
|
-
#: views/accounts/register/imap-server.hbs:
|
|
242
|
-
#: views/accounts/register/imap-server.hbs:
|
|
241
|
+
#: views/accounts/register/imap-server.hbs:415
|
|
242
|
+
#: views/accounts/register/imap-server.hbs:424
|
|
243
243
|
msgid "Server response:"
|
|
244
244
|
msgstr ""
|
|
245
245
|
|
|
246
|
-
#: views/accounts/register/imap-server.hbs:
|
|
246
|
+
#: views/accounts/register/imap-server.hbs:422
|
|
247
247
|
msgid "Couldn't connect to SMTP server"
|
|
248
248
|
msgstr ""
|
|
249
249
|
|
|
250
|
-
#: views/accounts/register/imap-server.hbs:
|
|
250
|
+
#: views/accounts/register/imap-server.hbs:481
|
|
251
251
|
msgid "Request failed."
|
|
252
252
|
msgstr ""
|
|
253
253
|
|
|
@@ -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,133 @@
|
|
|
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
|
+
</div>
|
|
15
|
+
{{!-- ui/tooltip renders bare when the text is empty, so the same call covers both the
|
|
16
|
+
live button and the one disabled with the reason on it --}}
|
|
17
|
+
{{#> ui/tooltip text=passkeyBlockReason placement="left"}}
|
|
18
|
+
{{> ui/btn label="Add passkey" variant="primary" style="outline" size="sm" id="register-passkey-btn"
|
|
19
|
+
icon="icon-[tabler--plus]" disabled=passkeyBlockReason}}
|
|
20
|
+
{{/ui/tooltip}}
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
{{#if passkeys.length}}
|
|
24
|
+
<div class="overflow-x-auto">
|
|
25
|
+
<table class="table">
|
|
26
|
+
<thead>
|
|
27
|
+
<tr>
|
|
28
|
+
<th>Passkey</th>
|
|
29
|
+
<th>Added</th>
|
|
30
|
+
<th>Last used</th>
|
|
31
|
+
<th class="w-12"><span class="sr-only">Actions</span></th>
|
|
32
|
+
</tr>
|
|
33
|
+
</thead>
|
|
34
|
+
|
|
35
|
+
<tbody>
|
|
36
|
+
{{#each passkeys}}
|
|
37
|
+
<tr class="hover:bg-base-200/60">
|
|
38
|
+
<td>
|
|
39
|
+
<div class="flex items-center gap-3">
|
|
40
|
+
<span
|
|
41
|
+
class="bg-base-200 text-base-content/70 flex size-9 shrink-0 items-center justify-center rounded-lg">
|
|
42
|
+
<span class="{{deviceIcon}} size-5"></span>
|
|
43
|
+
</span>
|
|
44
|
+
<div class="min-w-0">
|
|
45
|
+
<strong class="block">{{name}}</strong>
|
|
46
|
+
<span class="text-base-content/60 text-xs">{{deviceLabel}}</span>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</td>
|
|
50
|
+
|
|
51
|
+
<td>
|
|
52
|
+
{{#if createdAt}}
|
|
53
|
+
<span class="text-base-content/60 relative-time" data-time="{{createdAt}}"
|
|
54
|
+
title="{{createdAt}}"></span>
|
|
55
|
+
{{else}}
|
|
56
|
+
<span class="text-base-content/60">-</span>
|
|
57
|
+
{{/if}}
|
|
58
|
+
</td>
|
|
59
|
+
|
|
60
|
+
<td>
|
|
61
|
+
{{#if lastUsedAt}}
|
|
62
|
+
<span class="relative-time" data-time="{{lastUsedAt}}" title="{{lastUsedAt}}"></span>
|
|
63
|
+
{{else}}
|
|
64
|
+
{{!-- Not "Never": a credential registered before sign-ins were stamped carries
|
|
65
|
+
no timestamp either, and calling a passkey in daily use unused would
|
|
66
|
+
invite removing the wrong one --}}
|
|
67
|
+
<span class="text-base-content/60">-</span>
|
|
68
|
+
{{/if}}
|
|
69
|
+
</td>
|
|
70
|
+
|
|
71
|
+
<td class="relative text-end">
|
|
72
|
+
{{> ui/row-actions label="Passkey actions" deleteLabel="Remove" deleteModal="#deletePasskey"
|
|
73
|
+
deleteId=id deleteName=name}}
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
{{/each}}
|
|
77
|
+
</tbody>
|
|
78
|
+
</table>
|
|
79
|
+
</div>
|
|
80
|
+
{{else}}
|
|
81
|
+
<div class="card-body">
|
|
82
|
+
{{!-- The condition sits OUTSIDE the ui/empty-state block on purpose: a partial block
|
|
83
|
+
whose content is nothing but a {{#if}} wrapper loses its content to a Handlebars
|
|
84
|
+
program-association bug. Keep the block's first content token static. --}}
|
|
85
|
+
{{#if serviceUrl}}
|
|
86
|
+
{{#> ui/empty-state icon="icon-[tabler--fingerprint]" title="No passkeys registered"}}
|
|
87
|
+
Register this device to sign in without typing a password or a verification code.
|
|
88
|
+
{{/ui/empty-state}}
|
|
89
|
+
{{else}}
|
|
90
|
+
{{#> ui/empty-state icon="icon-[tabler--fingerprint]" title="No passkeys registered"}}
|
|
91
|
+
A passkey is bound to the hostname EmailEngine is served from, so set a <a href="/admin/config/service"
|
|
92
|
+
class="link link-animated">Service URL</a> before registering one.
|
|
93
|
+
{{/ui/empty-state}}
|
|
94
|
+
{{/if}}
|
|
95
|
+
</div>
|
|
96
|
+
{{/if}}
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
{{#> ui/confirm-modal id="deletePasskey" title="Remove passkey" action="/admin/account/passkeys/delete" fieldName="credentialId" fieldClass="delete-target-id" submitLabel="Remove passkey"}}
|
|
100
|
+
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.
|
|
101
|
+
{{/ui/confirm-modal}}
|
|
102
|
+
|
|
103
|
+
{{#> ui/modal id="registerPasskeyModal" title="Register a new passkey" titleId="registerPasskeyModalLabel"}}
|
|
104
|
+
<div class="modal-body space-y-4">
|
|
105
|
+
<div>
|
|
106
|
+
{{!-- The route reaching this page requires a configured account password, so the
|
|
107
|
+
confirmation field is unconditional here - registration verifies it server-side --}}
|
|
108
|
+
{{#> ui/form-field id="passkey-current-password" label="Current password"}}
|
|
109
|
+
<input type="password" class="input" id="passkey-current-password" placeholder="Enter your current password"
|
|
110
|
+
maxlength="256" autocomplete="current-password" />
|
|
111
|
+
<span class="helper-text">Confirm your identity before registering a new passkey.</span>
|
|
112
|
+
{{/ui/form-field}}
|
|
113
|
+
</div>
|
|
114
|
+
<div>
|
|
115
|
+
{{#> ui/form-field id="passkey-name" label="Passkey name"}}
|
|
116
|
+
<input type="text" class="input" id="passkey-name" placeholder="e.g., MacBook Touch ID" maxlength="100" />
|
|
117
|
+
<span class="helper-text">A friendly name to help you identify this passkey.</span>
|
|
118
|
+
{{/ui/form-field}}
|
|
119
|
+
</div>
|
|
120
|
+
<div id="passkey-register-error" class="text-error text-sm hidden"></div>
|
|
121
|
+
<div id="passkey-register-success" class="text-success text-sm hidden">
|
|
122
|
+
Passkey registered successfully.
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="modal-footer">
|
|
126
|
+
<input type="hidden" id="security-crumb" value="{{crumb}}" />
|
|
127
|
+
{{> ui/btn label="Cancel" variant="neutral" style="soft" overlay="#registerPasskeyModal"}}
|
|
128
|
+
{{> ui/btn label="Register passkey" id="passkey-register-confirm-btn"}}
|
|
129
|
+
</div>
|
|
130
|
+
{{/ui/modal}}
|
|
131
|
+
|
|
132
|
+
<script src="/static/vendor/simplewebauthn/browser.min.js"></script>
|
|
133
|
+
<script src="/static/js/passkey-register.js"></script>
|