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() {
|
||||
return request({
|
||||
method: "put",
|
||||
|
@ -43,6 +43,10 @@ class TfaStore {
|
||||
};
|
||||
|
||||
getBackupCodes = async () => {
|
||||
return api.settings.getTfaBackupCodes();
|
||||
};
|
||||
|
||||
getNewBackupCodes = async () => {
|
||||
return api.settings.getTfaNewBackupCodes();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user