generate qrcode on frontend, added manual key copy

This commit is contained in:
Spitap
2023-06-30 16:28:00 +02:00
parent a1e03ac117
commit 399eaf5709
5 changed files with 62 additions and 25 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ export default {
startTFASetup () {
return repository.post(`${resource}/tfa/setup/`)
},
getQRCodeForTFASetup () {
return repository.get(`${resource}/tfa/setup/qr_code/`)
getKeyForTFASetup () {
return repository.get(`${resource}/tfa/setup/key/`)
},
finalizeTFASetup (pinCode) {
const payload = { pin_code: pinCode }