From c2fc28aa1007ff3f7b055fc54bbc058560e50ee1 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Tue, 26 Apr 2016 08:40:47 -0400
Subject: Fix deactivating MFA on user accounts (#2797)

---
 webapp/components/user_settings/user_settings_security.jsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'webapp/components/user_settings/user_settings_security.jsx')

diff --git a/webapp/components/user_settings/user_settings_security.jsx b/webapp/components/user_settings/user_settings_security.jsx
index f28e34197..55a0a0e9a 100644
--- a/webapp/components/user_settings/user_settings_security.jsx
+++ b/webapp/components/user_settings/user_settings_security.jsx
@@ -139,10 +139,9 @@ class SecurityTab extends React.Component {
         );
     }
     deactivateMfa() {
-        const data = {};
-        data.activate = false;
-
-        Client.updateMfa(data,
+        Client.updateMfa(
+            '',
+            false,
             () => {
                 this.props.updateSection('');
                 AsyncClient.getMe();
-- 
cgit v1.2.3-1-g7c22

