diff options
author | Sylae Corell | 2014-07-02 13:01:07 -0600 |
---|---|---|
committer | Sylae Corell | 2014-07-02 13:01:07 -0600 |
commit | a44f3d860001e15b1ae7d1c9898c35ec26754312 (patch) | |
tree | 07dc0ad2020f0288903c077b5722f829bed25100 /plugins/smf2 | |
parent | Fix #3: Check session bridge before using it. (diff) | |
download | ejabberd-auth-php-a44f3d860001e15b1ae7d1c9898c35ec26754312.tar.gz |
SMF2: Use username instead of PDN for session
Diffstat (limited to 'plugins/smf2')
-rw-r--r-- | plugins/smf2/smf2.module | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |