summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings/user_settings_security.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-26 08:40:47 -0400
committerChristopher Speller <crspeller@gmail.com>2016-04-26 08:40:47 -0400
commitc2fc28aa1007ff3f7b055fc54bbc058560e50ee1 (patch)
treed364b2864c43a3fded7171a87feca43114340f37 /webapp/components/user_settings/user_settings_security.jsx
parent80d7debf1a992caf881c939ace66b5632eba1cf6 (diff)
downloadchat-c2fc28aa1007ff3f7b055fc54bbc058560e50ee1.tar.gz
chat-c2fc28aa1007ff3f7b055fc54bbc058560e50ee1.tar.bz2
chat-c2fc28aa1007ff3f7b055fc54bbc058560e50ee1.zip
Fix deactivating MFA on user accounts (#2797)
Diffstat (limited to 'webapp/components/user_settings/user_settings_security.jsx')
-rw-r--r--webapp/components/user_settings/user_settings_security.jsx7
1 files changed, 3 insertions, 4 deletions
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();