X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Fxmpp_sasl_service.c;h=a6a6734f7db004042010f6cb506d48267e1defd5;hp=1b2e98ae98197697b75a60f955127dfdef335d0f;hb=3144440e07822224c1967203c77ca3ef0f419e43;hpb=e329db30593524cc2d8851a4500bac41f2340354 diff --git a/citadel/modules/xmpp/xmpp_sasl_service.c b/citadel/modules/xmpp/xmpp_sasl_service.c index 1b2e98ae9..a6a6734f7 100644 --- a/citadel/modules/xmpp/xmpp_sasl_service.c +++ b/citadel/modules/xmpp/xmpp_sasl_service.c @@ -119,6 +119,7 @@ void xmpp_output_auth_mechs(void) { cprintf(""); } + /* * Here we go ... client is trying to authenticate. */ @@ -131,7 +132,9 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) { return; } - if (CC->logged_in) CtdlUserLogout(); /* Client may try to log in twice. Handle this. */ + if (CC->logged_in) { + CtdlUserLogout(); /* Client may try to log in twice. Handle this. */ + } if (CC->nologin) { cprintf(""); @@ -151,7 +154,6 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) { } - /* * Non-SASL authentication */ @@ -159,7 +161,9 @@ void xmpp_non_sasl_authenticate(char *iq_id, char *username, char *password) { int result; char xmlbuf[256]; - if (CC->logged_in) CtdlUserLogout(); /* Client may try to log in twice. Handle this. */ + if (CC->logged_in) { + CtdlUserLogout(); /* Client may try to log in twice. Handle this. */ + } result = CtdlLoginExistingUser(username); if (result == login_ok) {