cburschka / ejabberd-auth-php

Extendable system of bridging ejabberd with PHP authentication systems.
21 stars 11 forks source link

module smf2 with session returns PDN over username #5

Closed sylae closed 10 years ago

sylae commented 10 years ago

This can cause issues with permissions, if I change my username to something else, say, "butts", i will be logged into ejabberd as "butts@calref.net". However, manually logging in as "sylae@calref.net" works perfectly fine, which leads me to believe it's simply the session generator using the "PDN" jid over the "username" jid.

I'm pretty sure it's a simple fix, simply changing smf2.module:L23 to reference 'username' instead of 'name' //should// do the trick

cburschka commented 10 years ago

good idea; I didn't realize SMF distinguished between those