plugins: beforeLoginSubmit
Massimo Melina committed
Feb 28, 2025 at 18:16 UTC
13fbd580ebad48f2422c10124eee2edc1afdb4dd
2 files changed
+5
dev-plugins.md
+4
@@ -439,6 +439,9 @@ This is a list of available frontend-events, with respective object parameter an
439
- `beforeLogin`
440
- no parameter
441
- output `Html`
442
+- `beforeLoginSubmit`
443
+ - no parameter
444
+ - output `Html`
445
- `fileMenu`
446
- add or manipulate entries of the menu. If you return something, that will be added to the menu.
447
You can also delete or replace the content of the `menu` array.
@@ -792,6 +795,7 @@ If you want to override a text regardless of the language, use the special langu
795
796
- 12.0 (v0.57.0)
797
- backend event: finalizingLogin, httpsServerOptions, clearTextLogin
798
+ - frontend events: beforeLoginSubmit
799
- exports.changelog
800
- automatic unload of api.events listeners
801
- removed DirEntry.t
frontend/src/login.ts
+1
@@ -103,6 +103,7 @@ export async function loginDialog(closable=true, reloadAfter=true) {
103
onKeyDown
104
}),
105
),
106
+ h(CustomCode, { name: 'beforeLoginSubmit' }),
107
h('div', { className: 'submit' },
108
h('button', { type: 'submit' }, t`Continue`)),
109
h('div', { id: 'login-options' },