X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Fxmpp_sasl_service.c;h=78e05eebe0374bb465be61612623adbe9991cdc8;hb=cfa09472a585c534fd05c8a35811cff9ef18965f;hp=1b2e98ae98197697b75a60f955127dfdef335d0f;hpb=e329db30593524cc2d8851a4500bac41f2340354;p=citadel.git diff --git a/citadel/modules/xmpp/xmpp_sasl_service.c b/citadel/modules/xmpp/xmpp_sasl_service.c index 1b2e98ae9..78e05eebe 100644 --- a/citadel/modules/xmpp/xmpp_sasl_service.c +++ b/citadel/modules/xmpp/xmpp_sasl_service.c @@ -48,7 +48,6 @@ #include "config.h" #include "user_ops.h" #include "internet_addressing.h" -#include "md5.h" #include "ctdl_module.h" #include "serv_xmpp.h" @@ -119,6 +118,7 @@ void xmpp_output_auth_mechs(void) { cprintf(""); } + /* * Here we go ... client is trying to authenticate. */ @@ -131,7 +131,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 +153,6 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) { } - /* * Non-SASL authentication */ @@ -159,7 +160,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) {