This commit is contained in:
Bubka 2020-01-22 14:46:43 +01:00
parent 5bb4ad3823
commit fda3f75fdb

View File

@ -23,11 +23,6 @@
methods: {
getOTP: function () {
let token = localStorage.getItem('jwt')
axios.defaults.headers.common['Content-Type'] = 'application/json'
axios.defaults.headers.common['Authorization'] = 'Bearer ' + token
axios.get('api/twofaccounts/' + this.AccountId + '/totp').then(response => {
let spacePosition = Math.ceil(response.data.totp.length / 2);