snapporder: register_url works, started register.php

This commit is contained in:
nikolark committed 2014-06-07 23:01:02 +02:00
1 parent b36dc43339
commit 01bff75cd2
11 files changed
+264 -3

No files matched your search

+5
View File
@@ -72,6 +72,11 @@ $user = get_user($user_id);
/* Add back phone number from query */
$user['phone'] = $phone;
/* Add register url if needed */
if($user['registration_status'] === "partial") {
$user['registation_url'] = generate_registration_url($user, SECRET_KEY);
}
/* Return encrypted user object */
echo json_encode($user);
//echo $crypt->encrypt(json_encode($user));