From 1e5354cff3adc49de8a7c4ace5905b1ef914bda2 Mon Sep 17 00:00:00 2001
From: Carlos Tadeu Panato Junior <ctadeu@gmail.com>
Date: Tue, 24 Jan 2017 09:45:52 +0100
Subject: Move instances of Client.verifyEmail() in components to an action
 (#5166)

---
 webapp/actions/user_actions.jsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'webapp/actions/user_actions.jsx')

diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index 94546cf36..201a648f9 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -561,3 +561,20 @@ export function updatePassword(userId, currentPassword, newPassword, success, er
         }
     );
 }
+
+export function verifyEmail(uid, hid, success, error) {
+    Client.verifyEmail(
+        uid,
+        hid,
+        (data) => {
+            if (success) {
+                success(data);
+            }
+        },
+        (err) => {
+            if (error) {
+                error(err);
+            }
+        }
+    );
+}
-- 
cgit v1.2.3-1-g7c22

