From c011d987170251fdea9d85eeb77ba068fc659ca2 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Windows 11)" <rob@synchro.net>
Date: Thu, 10 Apr 2025 23:37:55 -0700
Subject: [PATCH] Rename bbs.good_password() to bbs.check_password() for
 consistency

... with the system object and the underlying SBBS functions being called.

Leave bbs.good_password() as an alias for backward compatibility.
---
 src/sbbs3/js_bbs.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/js_bbs.cpp b/src/sbbs3/js_bbs.cpp
index 56bd4f28a9..cece14de91 100644
--- a/src/sbbs3/js_bbs.cpp
+++ b/src/sbbs3/js_bbs.cpp
@@ -5011,9 +5011,10 @@ static jsSyncMethodSpec js_bbs_functions[] = {
 	 , JSDOCSTR("Verify system password, prompting for the password if not passed as an argument.")
 	 , 310
 	},
-	{"good_password",   js_chkpass,         1,  JSTYPE_BOOLEAN, JSDOCSTR("password, [forced_unique=false]")
+	{"good_password",   js_chkpass,         1,  JSTYPE_ALIAS },
+	{"check_password",  js_chkpass,         1,  JSTYPE_BOOLEAN, JSDOCSTR("password, [forced_unique=false]")
 	 , JSDOCSTR("Check if requested user password meets minimum password requirements "
-		        "(length, uniqueness, etc.).<br>"
+		        "(length, uniqueness, etc.) (AKA good_password).<br>"
 		        "When <i>forced_unique</i> is <tt>true</tt>, the password must be substantially different from the user's current password.")
 	 , 310
 	},
-- 
GitLab