mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-09-02 18:25:11 +00:00
fix: encode email before sending (#917)
This commit is contained in:
parent
b1caa57c21
commit
2897c0b83f
1 changed files with 2 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue