X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fpas2%2Fserv_pas2.c;h=c6bb35b3dcfa8ec4b615c33fe20a64044243ffee;hb=8c47559cb5ae97ec0fa35660ee16fd61a9451c72;hp=7df51d60dfcd19786d91a53e871b85b59a0f1c98;hpb=1e656d277fe91b7c4f5d73eab4a0dd0b7a173145;p=citadel.git diff --git a/citadel/modules/pas2/serv_pas2.c b/citadel/modules/pas2/serv_pas2.c index 7df51d60d..c6bb35b3d 100644 --- a/citadel/modules/pas2/serv_pas2.c +++ b/citadel/modules/pas2/serv_pas2.c @@ -1,6 +1,22 @@ /* * cmd_pas2 - MD5 APOP style auth keyed off of the hash of the password * plus a nonce displayed at the login banner. + * + * Copyright (c) 1994-2009 by the citadel.org team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include @@ -88,8 +104,11 @@ void cmd_pas2(char *argbuf) CTDL_MODULE_INIT(pas2) { - CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login"); - + if (!threading) + { + CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login"); + } + /* return our Subversion id for the Log */ return "$Id$"; }