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
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/06-CLICommands.md
-15Lines changed: 0 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -353,21 +353,6 @@ Generated example:
353
353
custom/OrderShowBottomExportButton.vue
354
354
```
355
355
356
-
Special position for create/edit:
357
-
-`saveButton` — replaces the default Save button at the top bar.
358
-
359
-
Example usage via interactive flow:
360
-
```bash
361
-
adminforth component
362
-
# → CRUD Page Injections
363
-
# → (create | edit)
364
-
# → Save button
365
-
```
366
-
367
-
Your generated component will receive props documented in Page Injections → Create/Edit custom Save button. At minimum, call `props.saveRecord()` on click and respect `props.saving`, `props.isValid`, and `props.disabled`.
368
-
369
-
---
370
-
371
356
#### 🔐 Login Page Injections (`login`)
372
357
373
358
Places a component before or after the login form.
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md
+54-31Lines changed: 54 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -328,41 +328,44 @@ options: {
328
328
329
329
### Request 2FA for create/edit (secure save gating)
330
330
331
-
To protect create and edit operations, collect the result of the 2FA modal on the frontend and send it along with the save payload. The server must verify it before writing changes.
331
+
To protect create and edit operations, use a Save Interceptor injected on the page to gate the save with 2FA, and forward the result to the backend for verification. This avoids wrapping the Save button and works with the default UI.
332
332
333
-
Frontend (custom Save button example):
333
+
Frontend (Save Interceptor component injected via pageInjections):
0 commit comments