Web: Common: get old backup codes

This commit is contained in:
Viktor Fomin 2021-05-20 01:44:03 +03:00
parent 8c504e762b
commit b2611343b6
2 changed files with 11 additions and 0 deletions

View File

@ -265,6 +265,13 @@ export function setTfaSettings(type) {
});
}
export function getTfaBackupCodes() {
return request({
method: "get",
url: "/settings/tfaappcodes",
});
}
export function getTfaNewBackupCodes() {
return request({
method: "put",

View File

@ -43,6 +43,10 @@ class TfaStore {
};
getBackupCodes = async () => {
return api.settings.getTfaBackupCodes();
};
getNewBackupCodes = async () => {
return api.settings.getTfaNewBackupCodes();
};