mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
support use 2fa backup code
This commit is contained in:
@@ -49,6 +49,15 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
authorize2FAByBackupCode: ({ recoveryCode, token }) => {
|
||||
return axios.post('2fa/recovery.json', {
|
||||
recoveryCode
|
||||
}, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`
|
||||
}
|
||||
});
|
||||
},
|
||||
logout: () => {
|
||||
return axios.get('v1/logout.json');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user