diff options
author | Christoph Burschka | 2014-07-03 00:26:34 +0200 |
---|---|---|
committer | Christoph Burschka | 2014-07-03 00:26:34 +0200 |
commit | 6bce6bc394d1d4d1027917c2eb9364a16c56a6e1 (patch) | |
tree | 07dc0ad2020f0288903c077b5722f829bed25100 /plugins/smf2/smf2.module | |
parent | Fix #3: Check session bridge before using it. (diff) | |
parent | SMF2: Use username instead of PDN for session (diff) | |
download | ejabberd-auth-php-6bce6bc394d1d4d1027917c2eb9364a16c56a6e1.tar.gz |
Merge pull request #6 from sylae/master
Fix #5: SMF2: Use username instead of PDN for session
Diffstat (limited to 'plugins/smf2/smf2.module')
-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) { |