Facebook ID instead of Facebook email

This commit is contained in:
Joey Lai
2017-02-01 12:25:13 +01:00
parent 8e98001217
commit 2b893fc283
11 changed files with 148 additions and 138 deletions

View File

@@ -128,6 +128,7 @@ function fbRegisterAccount() {
username,
password,
email,
facebookID,
role)
VALUES(
:fname,
@@ -136,6 +137,7 @@ function fbRegisterAccount() {
:username,
:password,
:email,
:facebookID,
'user'
)");
$fbDay_date = test_input(($_POST["fbDay_date"]));
@@ -149,6 +151,7 @@ function fbRegisterAccount() {
$stmt->bindValue(":lname", test_input($_POST["fbSurname"]));
$stmt->bindValue(":bday", test_input($fbBday));
$stmt->bindValue(":username", test_input($_POST["fbUsername"]));
$stmt->bindValue(":facebookID", test_input($_POST["fbUserID"]));
$stmt->bindValue(":password", test_input($hash));
$stmt->bindValue(":email", test_input(strtolower($_POST["fbEmail"])));