2fa routes have changed
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user