aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-29 20:58:32 -0700
committerfriendica <info@friendica.com>2012-03-29 20:58:32 -0700
commitbb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e (patch)
tree48ca85a83dc21214ec056dd21798e04bacfc7936 /include/security.php
parentcd47ba6ed1236b14c5da832b686eea0be926f65a (diff)
downloadvolse-hubzilla-bb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e.tar.gz
volse-hubzilla-bb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e.tar.bz2
volse-hubzilla-bb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e.zip
use zrl to get home again
Diffstat (limited to 'include/security.php')
-rwxr-xr-xinclude/security.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/security.php b/include/security.php
index 19e91eb63..66622fd33 100755
--- a/include/security.php
+++ b/include/security.php
@@ -9,6 +9,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive
$_SESSION['authenticated'] = 1;
$_SESSION['page_flags'] = $user_record['page-flags'];
$_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $user_record['nickname'];
+ $_SESSION['my_address'] = $user_record['nickname'] . '@' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'://')+3);
$_SESSION['addr'] = $_SERVER['REMOTE_ADDR'];
$a->user = $user_record;