summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-04-27 10:55:03 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-04-27 10:55:03 -0400
commit9a87bb3af68216b53ee8f89d6604c715c7b85b2d (patch)
tree8c06aed890f388b228f3aefb8e398309bc73c0b9 /webapp/client/client.jsx
parent0e007e344bf10993529711f14c4168365c3504c3 (diff)
downloadchat-9a87bb3af68216b53ee8f89d6604c715c7b85b2d.tar.gz
chat-9a87bb3af68216b53ee8f89d6604c715c7b85b2d.tar.bz2
chat-9a87bb3af68216b53ee8f89d6604c715c7b85b2d.zip
Creating common token store and moving email invites and verification to it (#6213)
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 697687a5f..2b149e240 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1319,19 +1319,19 @@ export default class Client {
this.trackEvent('api', 'api_channels_set_active', {channel_id: id});
}
- verifyEmail(uid, hid, success, error) {
+ verifyEmail(token, success, error) {
request.
- post(`${this.getUsersRoute()}/verify_email`).
+ post(`${this.url}/api/v4/users/email/verify`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
- send({uid, hid}).
+ send({token}).
end(this.handleResponse.bind(this, 'verifyEmail', success, error));
}
resendVerification(email, success, error) {
request.
- post(`${this.getUsersRoute()}/resend_verification`).
+ post(`${this.url}/api/v4/users/email/verify/send`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').