Skip to content
Snippets Groups Projects
Commit 36730673 authored by rswindell's avatar rswindell
Browse files

Call "badlogin" even when the username entered is invalid and the

"Always Prompt for Password" setting is set to "No".
This change enables the auto-hack-log, throttling, filtering, and banning
logic for these types of failed login attempts.
parent c53eb521
No related branches found
No related tags found
No related merge requests found
/* login.cpp */
/* Synchronet user login routine */ /* Synchronet user login routine */
/* $Id$ */ /* $Id$ */
...@@ -8,7 +6,7 @@ ...@@ -8,7 +6,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* * * *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* * * *
* This program is free software; you can redistribute it and/or * * This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License * * modify it under the terms of the GNU General Public License *
...@@ -94,6 +92,7 @@ int sbbs_t::login(char *username, char *pw) ...@@ -94,6 +92,7 @@ int sbbs_t::login(char *username, char *pw)
,0,useron.alias); ,0,useron.alias);
logline(LOG_NOTICE,"+!",tmp); logline(LOG_NOTICE,"+!",tmp);
} else { } else {
badlogin(str, NULL);
bputs(text[UnknownUser]); bputs(text[UnknownUser]);
sprintf(tmp,"Unknown User '%s'",str); sprintf(tmp,"Unknown User '%s'",str);
logline(LOG_NOTICE,"+!",tmp); logline(LOG_NOTICE,"+!",tmp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment