summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2017-01-24 12:51:43 +0100
committerGeorge Goldberg <george@gberg.me>2017-01-24 11:51:43 +0000
commit479bd1a2b307a1fc35b7ca5869166875612c62b1 (patch)
tree15027352f7814a29b45363afc4574c62f5b8aa92 /webapp/actions
parentb87cd4e276cd0ef3c90e78cddd0b8b87e52e5ede (diff)
downloadchat-479bd1a2b307a1fc35b7ca5869166875612c62b1.tar.gz
chat-479bd1a2b307a1fc35b7ca5869166875612c62b1.tar.bz2
chat-479bd1a2b307a1fc35b7ca5869166875612c62b1.zip
Move instances of Client.resendVerification() in components to an action (#5169)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/user_actions.jsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index 3f9715cd5..09148c3f2 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -600,3 +600,19 @@ export function resetPassword(code, password, success, error) {
}
);
}
+
+export function resendVerification(email, success, error) {
+ Client.resendVerification(
+ email,
+ () => {
+ if (success) {
+ success();
+ }
+ },
+ (err) => {
+ if (error) {
+ error(err);
+ }
+ }
+ );
+}