From 36730673dc6bdca8a92a8681fc1f2b9b6988c06c Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 21 Nov 2016 05:26:35 +0000
Subject: [PATCH] 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.

---
 src/sbbs3/login.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/login.cpp b/src/sbbs3/login.cpp
index 6de4ba711e..cb16d4ec94 100644
--- a/src/sbbs3/login.cpp
+++ b/src/sbbs3/login.cpp
@@ -1,5 +1,3 @@
-/* login.cpp */
-
 /* Synchronet user login routine */
 
 /* $Id$ */
@@ -8,7 +6,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @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			*
  * modify it under the terms of the GNU General Public License				*
@@ -94,6 +92,7 @@ int sbbs_t::login(char *username, char *pw)
 					,0,useron.alias);
 			logline(LOG_NOTICE,"+!",tmp); 
 		} else {
+			badlogin(str, NULL);
 			bputs(text[UnknownUser]);
 			sprintf(tmp,"Unknown User '%s'",str);
 			logline(LOG_NOTICE,"+!",tmp); 
-- 
GitLab