From 0cba48d155ac0703d6c85e71327d29447c0c8e42 Mon Sep 17 00:00:00 2001
From: AymaneKhouaji <akhouaji@linagora.com>
Date: Tue, 10 Jan 2017 11:48:37 +0100
Subject: Move instances of Client.updatePassword() in components to an action
 (#4908) (#5021)

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

(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 3484b8183..bc13437b0 100644
--- a/webapp/components/user_settings/user_settings_security.jsx
+++ b/webapp/components/user_settings/user_settings_security.jsx
@@ -14,6 +14,8 @@ import * as AsyncClient from 'utils/async_client.jsx';
 import * as Utils from 'utils/utils.jsx';
 import Constants from 'utils/constants.jsx';
 
+import {updatePassword} from 'actions/user_actions.jsx';
+
 import $ from 'jquery';
 import React from 'react';
 import {FormattedMessage, FormattedTime, FormattedDate} from 'react-intl';
@@ -91,7 +93,7 @@ export default class SecurityTab extends React.Component {
             return;
         }
 
-        Client.updatePassword(
+        updatePassword(
             user.id,
             currentPassword,
             newPassword,
-- 
cgit v1.2.3-1-g7c22

