diff --git a/src/js/client.js b/src/js/client.js index 7c2391314..32573cb06 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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));