Skip to content

Commit 2e7f440

Browse files
committed
docs: update docs for the 2fa plugin
1 parent 8f1b95f commit 2e7f440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ options: {
242242
name: 'Auto submit',
243243
icon: 'flowbite:play-solid',
244244
allowed: () => true,
245-
action: async ({ recordId, adminUser, adminforth, extra, cookies }) => {
245+
action: async ({ recordId, adminUser, adminforth, extra }) => {
246246
//diff-add
247247
const verificationResult = extra?.verificationResult
248248
//diff-add
@@ -260,7 +260,7 @@ options: {
260260
//diff-add
261261
userPk: adminUser.pk,
262262
//diff-add
263-
cookies: cookies
263+
cookies: extra.cookies
264264
//diff-add
265265
});
266266

0 commit comments

Comments
 (0)