Skip to content

Commit 67b7d58

Browse files
committed
fix: return inconsistency
1 parent 44f91d4 commit 67b7d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/handlers/user/user_handlers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ func (h *Handlers) EnableTwoFA(c *gin.Context) {
373373
"success": true,
374374
"message": "Two Factor Authentication Enabled Successfully",
375375
"data": gin.H{
376-
"qr_image": qr,
377-
"setup_key": setupKey,
376+
"qr_image": qr,
377+
"twofa_secret": setupKey,
378378
},
379379
})
380380
}

0 commit comments

Comments
 (0)