2fa routes have changed

This commit is contained in:
Girish Ramakrishnan
2021-04-14 20:00:31 -07:00
parent f964178682
commit 09368dd267

View File

@@ -1845,7 +1845,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
Client.prototype.setTwoFactorAuthenticationSecret = function (callback) {
var data = {};
post('/api/v1/profile/twofactorauthentication', data, null, function (error, data, status) {
post('/api/v1/profile/twofactorauthentication_secret', data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 201) return callback(new ClientError(status, data));
@@ -1858,7 +1858,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
totpToken: totpToken
};
post('/api/v1/profile/twofactorauthentication/enable', data, null, function (error, data, status) {
post('/api/v1/profile/twofactorauthentication_enable', data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
@@ -1871,7 +1871,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
password: password
};
post('/api/v1/profile/twofactorauthentication/disable', data, null, function (error, data, status) {
post('/api/v1/profile/twofactorauthentication_disable', data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));