emailengine-app 2.79.5 → 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 +24 -0
- package/data/google-crawlers.json +1 -1
- package/lib/api-routes/account-routes.js +6 -3
- package/lib/api-routes/behavior-notes.js +6 -3
- package/lib/consts.js +4 -2
- package/lib/email-client/imap/mailbox.js +32 -8
- package/lib/enum-descriptions.js +1 -1
- 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 +21 -21
- 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 +375 -774
- package/translations/messages.pot +66 -66
- 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
|
|
|
@@ -27,6 +27,35 @@ msgid_plural "%d days"
|
|
|
27
27
|
msgstr[0] ""
|
|
28
28
|
msgstr[1] ""
|
|
29
29
|
|
|
30
|
+
#: views/redirect.hbs:1
|
|
31
|
+
msgid "Click <a href=\"%s\">here</a> to continue…"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#: views/oauth-scope-error.hbs:5
|
|
35
|
+
msgid "Insufficient Permissions"
|
|
36
|
+
msgstr ""
|
|
37
|
+
|
|
38
|
+
#: views/oauth-scope-error.hbs:10
|
|
39
|
+
msgid ""
|
|
40
|
+
"All requested permissions are required for this service to function "
|
|
41
|
+
"properly. Some required permissions were not granted during sign-in."
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
#: views/oauth-scope-error.hbs:14
|
|
45
|
+
msgid "The following permissions were not granted:"
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
#: views/oauth-scope-error.hbs:23
|
|
49
|
+
msgid ""
|
|
50
|
+
"Please try again and make sure all permission checkboxes are selected on "
|
|
51
|
+
"the Google consent screen."
|
|
52
|
+
msgstr ""
|
|
53
|
+
|
|
54
|
+
#: views/oauth-scope-error.hbs:28
|
|
55
|
+
#: views/account-identity-error.hbs:32
|
|
56
|
+
msgid "Try Again"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
30
59
|
#: views/unsubscribe.hbs:7
|
|
31
60
|
#: views/unsubscribe.hbs:60
|
|
32
61
|
#: views/unsubscribe.hbs:75
|
|
@@ -71,33 +100,34 @@ msgstr ""
|
|
|
71
100
|
msgid "Email address"
|
|
72
101
|
msgstr ""
|
|
73
102
|
|
|
74
|
-
#: views/
|
|
75
|
-
msgid "
|
|
103
|
+
#: views/accounts/register/imap.hbs:13
|
|
104
|
+
msgid "Your name"
|
|
76
105
|
msgstr ""
|
|
77
106
|
|
|
78
|
-
#: views/
|
|
79
|
-
msgid "
|
|
107
|
+
#: views/accounts/register/imap.hbs:19
|
|
108
|
+
msgid "Enter your full name"
|
|
80
109
|
msgstr ""
|
|
81
110
|
|
|
82
|
-
#: views/
|
|
83
|
-
msgid ""
|
|
84
|
-
"All requested permissions are required for this service to function "
|
|
85
|
-
"properly. Some required permissions were not granted during sign-in."
|
|
111
|
+
#: views/accounts/register/imap.hbs:35
|
|
112
|
+
msgid "This setup link is restricted to this email address"
|
|
86
113
|
msgstr ""
|
|
87
114
|
|
|
88
|
-
#: views/
|
|
89
|
-
msgid "
|
|
115
|
+
#: views/accounts/register/imap.hbs:37
|
|
116
|
+
msgid "Enter your email address"
|
|
90
117
|
msgstr ""
|
|
91
118
|
|
|
92
|
-
#: views/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
119
|
+
#: views/accounts/register/imap.hbs:43
|
|
120
|
+
#: views/accounts/register/imap-server.hbs:39
|
|
121
|
+
#: views/accounts/register/imap-server.hbs:146
|
|
122
|
+
msgid "Password"
|
|
96
123
|
msgstr ""
|
|
97
124
|
|
|
98
|
-
#: views/
|
|
99
|
-
|
|
100
|
-
|
|
125
|
+
#: views/accounts/register/imap.hbs:49
|
|
126
|
+
msgid "Enter your account password"
|
|
127
|
+
msgstr ""
|
|
128
|
+
|
|
129
|
+
#: views/accounts/register/imap.hbs:55
|
|
130
|
+
msgid "Continue"
|
|
101
131
|
msgstr ""
|
|
102
132
|
|
|
103
133
|
#: views/accounts/register/index.hbs:6
|
|
@@ -117,12 +147,6 @@ msgstr ""
|
|
|
117
147
|
msgid "Username"
|
|
118
148
|
msgstr ""
|
|
119
149
|
|
|
120
|
-
#: views/accounts/register/imap-server.hbs:39
|
|
121
|
-
#: views/accounts/register/imap-server.hbs:146
|
|
122
|
-
#: views/accounts/register/imap.hbs:43
|
|
123
|
-
msgid "Password"
|
|
124
|
-
msgstr ""
|
|
125
|
-
|
|
126
150
|
#: views/accounts/register/imap-server.hbs:51
|
|
127
151
|
#: views/accounts/register/imap-server.hbs:158
|
|
128
152
|
msgid "Important"
|
|
@@ -202,55 +226,31 @@ msgstr ""
|
|
|
202
226
|
msgid "We couldn't connect with these settings. Check the errors below."
|
|
203
227
|
msgstr ""
|
|
204
228
|
|
|
205
|
-
#: views/accounts/register/imap-server.hbs:
|
|
229
|
+
#: views/accounts/register/imap-server.hbs:405
|
|
206
230
|
msgid "Error"
|
|
207
231
|
msgstr ""
|
|
208
232
|
|
|
209
|
-
#: views/accounts/register/imap-server.hbs:
|
|
233
|
+
#: views/accounts/register/imap-server.hbs:407
|
|
210
234
|
msgid "Invalid settings"
|
|
211
235
|
msgstr ""
|
|
212
236
|
|
|
213
|
-
#: views/accounts/register/imap-server.hbs:
|
|
237
|
+
#: views/accounts/register/imap-server.hbs:413
|
|
214
238
|
msgid "Couldn't connect to IMAP server"
|
|
215
239
|
msgstr ""
|
|
216
240
|
|
|
217
|
-
#: views/accounts/register/imap-server.hbs:
|
|
218
|
-
#: views/accounts/register/imap-server.hbs:
|
|
241
|
+
#: views/accounts/register/imap-server.hbs:415
|
|
242
|
+
#: views/accounts/register/imap-server.hbs:424
|
|
219
243
|
msgid "Server response:"
|
|
220
244
|
msgstr ""
|
|
221
245
|
|
|
222
|
-
#: views/accounts/register/imap-server.hbs:
|
|
246
|
+
#: views/accounts/register/imap-server.hbs:422
|
|
223
247
|
msgid "Couldn't connect to SMTP server"
|
|
224
248
|
msgstr ""
|
|
225
249
|
|
|
226
|
-
#: views/accounts/register/imap-server.hbs:
|
|
250
|
+
#: views/accounts/register/imap-server.hbs:481
|
|
227
251
|
msgid "Request failed."
|
|
228
252
|
msgstr ""
|
|
229
253
|
|
|
230
|
-
#: views/accounts/register/imap.hbs:13
|
|
231
|
-
msgid "Your name"
|
|
232
|
-
msgstr ""
|
|
233
|
-
|
|
234
|
-
#: views/accounts/register/imap.hbs:19
|
|
235
|
-
msgid "Enter your full name"
|
|
236
|
-
msgstr ""
|
|
237
|
-
|
|
238
|
-
#: views/accounts/register/imap.hbs:35
|
|
239
|
-
msgid "This setup link is restricted to this email address"
|
|
240
|
-
msgstr ""
|
|
241
|
-
|
|
242
|
-
#: views/accounts/register/imap.hbs:37
|
|
243
|
-
msgid "Enter your email address"
|
|
244
|
-
msgstr ""
|
|
245
|
-
|
|
246
|
-
#: views/accounts/register/imap.hbs:49
|
|
247
|
-
msgid "Enter your account password"
|
|
248
|
-
msgstr ""
|
|
249
|
-
|
|
250
|
-
#: views/accounts/register/imap.hbs:55
|
|
251
|
-
msgid "Continue"
|
|
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 ""
|
|
@@ -306,9 +306,9 @@ msgstr ""
|
|
|
306
306
|
#: lib/ui-routes/account-routes.js:807
|
|
307
307
|
#: lib/ui-routes/account-routes.js:860
|
|
308
308
|
#: lib/ui-routes/account-routes.js:1213
|
|
309
|
-
#: lib/ui-routes/route-helpers.js:
|
|
310
|
-
#: workers/api.js:
|
|
311
|
-
#: workers/api.js:
|
|
309
|
+
#: lib/ui-routes/route-helpers.js:374
|
|
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>
|