474482210f
* fixes: #17113: Make MFA setup wizard call token based generate endpoint * add changelog for #17932 * cleanup: bring back .gitkeep * re trigger ci jobs
14 lines
389 B
JavaScript
14 lines
389 B
JavaScript
import ApplicationAdapter from './application';
|
|
|
|
export default class MfaSetupAdapter extends ApplicationAdapter {
|
|
currentTokenGenerate(data) {
|
|
const url = `/v1/identity/mfa/method/totp/generate`;
|
|
return this.ajax(url, 'POST', { data });
|
|
}
|
|
|
|
adminDestroy(data) {
|
|
const url = `/v1/identity/mfa/method/totp/admin-destroy`;
|
|
return this.ajax(url, 'POST', { data });
|
|
}
|
|
}
|