Web: Common: get old backup codes
This commit is contained in:
parent
8c504e762b
commit
b2611343b6
@ -265,6 +265,13 @@ export function setTfaSettings(type) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getTfaBackupCodes() {
|
||||||
|
return request({
|
||||||
|
method: "get",
|
||||||
|
url: "/settings/tfaappcodes",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export function getTfaNewBackupCodes() {
|
export function getTfaNewBackupCodes() {
|
||||||
return request({
|
return request({
|
||||||
method: "put",
|
method: "put",
|
||||||
|
@ -43,6 +43,10 @@ class TfaStore {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getBackupCodes = async () => {
|
getBackupCodes = async () => {
|
||||||
|
return api.settings.getTfaBackupCodes();
|
||||||
|
};
|
||||||
|
|
||||||
|
getNewBackupCodes = async () => {
|
||||||
return api.settings.getTfaNewBackupCodes();
|
return api.settings.getTfaNewBackupCodes();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user