mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-15 16:22:25 +02:00
Make some cleaning
This commit is contained in:
@ -150,7 +150,6 @@
|
|||||||
if (error.response.status === 422) {
|
if (error.response.status === 422) {
|
||||||
emit('validation-error', error.response)
|
emit('validation-error', error.response)
|
||||||
}
|
}
|
||||||
console.log(error)
|
|
||||||
//throw error
|
//throw error
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
form.qrcode = qrcodeInput.value.files[0]
|
form.qrcode = qrcodeInput.value.files[0]
|
||||||
|
|
||||||
form.upload('/api/v1/qrcode/decode', { returnError: true }).then(response => {
|
form.upload('/api/v1/qrcode/decode', { returnError: true }).then(response => {
|
||||||
console.log(response.data)
|
|
||||||
if (response.data.data.slice(0, 33).toLowerCase() === "otpauth-migration://offline?data=") {
|
if (response.data.data.slice(0, 33).toLowerCase() === "otpauth-migration://offline?data=") {
|
||||||
bus.migrationUri = response.data.data
|
bus.migrationUri = response.data.data
|
||||||
router.push({ name: 'importAccounts' })
|
router.push({ name: 'importAccounts' })
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
notify.success({ text: response.data.message, duration:-1 })
|
notify.success({ text: response.data.message, duration:-1 })
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error)
|
|
||||||
if( error.response.data.requestFailed ) {
|
if( error.response.data.requestFailed ) {
|
||||||
notify.alert({ text: error.response.data.requestFailed, duration:-1 })
|
notify.alert({ text: error.response.data.requestFailed, duration:-1 })
|
||||||
}
|
}
|
||||||
|
@ -313,7 +313,6 @@
|
|||||||
|
|
||||||
twofaccountService.getLogo(form.service, { returnError: true })
|
twofaccountService.getLogo(form.service, { returnError: true })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log('enter fetchLogo response')
|
|
||||||
if (response.status === 201) {
|
if (response.status === 201) {
|
||||||
// clean possible already uploaded temp icon
|
// clean possible already uploaded temp icon
|
||||||
deleteIcon()
|
deleteIcon()
|
||||||
|
Reference in New Issue
Block a user