blob: c7259e826a1120d6a422751eadc67451e19b3b97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import axio from 'axios';
export function getState () {
const url = OC.generateUrl('/apps/twofactor_backupcodes/settings/state');
return axio.get(url, {
headers: {
requesttoken: OC.requestToken
}
}).then(resp => resp.data);
}
export function generateCodes () {
const url = OC.generateUrl('/apps/twofactor_backupcodes/settings/create');
return axio.post(url, {}, {
headers: {
requesttoken: OC.requestToken
}
}).then(resp => resp.data)
}
|