From 96d421e080c276dd431906b1f36454a8a2b60f5b Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Wed, 8 Sep 2021 18:38:21 +0900 Subject: [PATCH] you are not a valid user. --- src/App.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 8d92adf..cf18fb3 100644 --- a/src/App.js +++ b/src/App.js @@ -690,6 +690,7 @@ function LoginForm(p) { } function responseGoogle(response) { + //setMessage(JSON.stringify(response)) if (response.error) { setMessage(JSON.stringify(response)) } else @@ -701,14 +702,15 @@ function LoginForm(p) { axios.post(GetBackendURL(p)+"/registerUser",{ username:response.profileObj.name, email:response.profileObj.email, - password:response.profileObj.tokenId, + password:response.tokenId, avatar:response.profileObj.imageUrl, userID:response.profileObj.googleId, + recoveryhash:response.profileObj.googleId }) .then((data)=>{ if (data.data.verified) { p.setLOGGEDINUSER(response.profileObj.name) - p.setLOGGEDINHASH(response.profileObj.tokenId) + p.setLOGGEDINHASH(response.tokenId) setUsername("") setPassword("") setRememberMe(false)