you are not a valid user.
This commit is contained in:
parent
64244ac3c5
commit
96d421e080
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user