Update authenticateMe.php

This commit is contained in:
tripathyr 2021-11-08 09:59:39 +05:30 committed by GitHub
parent 3bd27ee6c8
commit 78b67430cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,14 @@ $std->error = false;
setcookie("exchange[flo_id]", $floID, time () + (86400 * $cookie_life_days));
setcookie("exchange[session_id]", $s_id, time () + (86400 * $cookie_life_days));
setcookie("exchange[flo_pub_key]", $pubKey,time () + (86400 * $cookie_life_days));
$_SESSION['authenticated'] = true;
//TEMPORARILY ASSIGNING ALL THESE VARIABLES TO $floID
$_SESSION['full_name'] = $floID;
$_SESSION['email'] = $floID;
$_SESSION['fb_id'] = $floID;
echo json_encode($std);
return true;