fix: encode email before sending (#917)

This commit is contained in:
Sean Yesmunt 2019-01-08 16:24:00 -05:00 committed by Thomas Zarebczan
parent b1caa57c21
commit 2897c0b83f

View file

@ -11,7 +11,8 @@
const ENDPOINT = 'https://api.lbry.io/user_email/confirm'
var verifyUser = function(temporary_auth_token, email, verification_token, recaptcha) {
const url = `${ENDPOINT}?auth_token=${temporary_auth_token}&email=${email}&verification_token=${verification_token}&recaptcha=${recaptcha}`;
const url = `${ENDPOINT}?auth_token=${temporary_auth_token}&email=${encodeURIComponent(email)}&verification_token=${verification_token}&recaptcha=${recaptcha}`;
fetch(url)
.then(response => response.json())
.then((response) => {