feature: Provide Text Authenticator Key during 2FA in addition to QR code

This commit is contained in:
usmannasir
2025-06-29 13:50:53 +05:00
parent 500752f43c
commit a930650b2d
3 changed files with 46 additions and 1 deletions

View File

@@ -310,7 +310,8 @@ def fetchUserDetails(request):
"websitesLimit": websitesLimit,
"securityLevel": SecurityLevel(user.securityLevel).name,
"otpauth": otpauth,
'twofa': user.twoFA
'twofa': user.twoFA,
'secretKey': user.secretKey
}
data_ret = {'fetchStatus': 1, 'error_message': 'None', "userDetails": userDetails}