mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 01:40:53 -04:00
This saves a direct request to the server when loading the backup codes. There is no need for this as the data is already known. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 lines
203 B
JavaScript
7 lines
203 B
JavaScript
import Axios from 'nextcloud-axios'
|
|
|
|
export function generateCodes () {
|
|
const url = OC.generateUrl('/apps/twofactor_backupcodes/settings/create');
|
|
|
|
return Axios.post(url, {}).then(resp => resp.data)
|
|
}
|