aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-18 18:13:46 -0700
committerFriendika <info@friendika.com>2011-07-18 18:13:46 -0700
commitc0b8e63a3fe600326e0f18c03207ba9fd30c8126 (patch)
treea3eb8d1f518066101b881738d5f678c4d3a01d46 /mod/register.php
parent25b4aacf3b53d4f82f7dc817bb1e022b2a61c1a3 (diff)
downloadvolse-hubzilla-c0b8e63a3fe600326e0f18c03207ba9fd30c8126.tar.gz
volse-hubzilla-c0b8e63a3fe600326e0f18c03207ba9fd30c8126.tar.bz2
volse-hubzilla-c0b8e63a3fe600326e0f18c03207ba9fd30c8126.zip
basic diaspora discovery
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/register.php b/mod/register.php
index 549d07a91..94eac7a14 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -198,9 +198,10 @@ function register_post(&$a) {
$spkey = openssl_pkey_get_details($sres);
$spubkey = $spkey["key"];
- $r = q("INSERT INTO `user` ( `username`, `password`, `email`, `openid`, `nickname`,
+ $r = q("INSERT INTO `user` ( `guid`, `username`, `password`, `email`, `openid`, `nickname`,
`pubkey`, `prvkey`, `spubkey`, `sprvkey`, `register_date`, `verified`, `blocked` )
- VALUES ( '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d )",
+ VALUES ( '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d )",
+ dbesc(generate_guid()),
dbesc($username),
dbesc($new_password_encoded),
dbesc($email),