From a44f3d860001e15b1ae7d1c9898c35ec26754312 Mon Sep 17 00:00:00 2001 From: Sylae Corell Date: Wed, 2 Jul 2014 13:01:07 -0600 Subject: SMF2: Use username instead of PDN for session --- plugins/smf2/smf2.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/smf2/smf2.module b/plugins/smf2/smf2.module index 1f91bf0..bdda428 100644 --- a/plugins/smf2/smf2.module +++ b/plugins/smf2/smf2.module @@ -20,7 +20,7 @@ function smf2_init($config) { function smf2_session($config) { smf2_bootstrap($config); $user = smf_ssi('welcome', NULL); - return (empty($user['is_guest']) && !empty($user['name'])) ? $user['name'] : FALSE; + return (empty($user['is_guest']) && !empty($user['username'])) ? $user['username'] : FALSE; } function smf_ssi($function) { -- cgit v1.1