summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-11 12:05:18 +0100
committerSadie Powell <sadie@witchery.services>2025-04-19 12:38:32 +0100
commit452e62c05021b29b4f0641245cafa6ae115e2198 (patch)
treee5bf110189f06b7c7afaa8e58ed3b2b03e5220be /data
parent4916e1dbfcbea01830d16b27ec90930c875bc335 (diff)
Add support for local password comparison in sql_authentication.
Diffstat (limited to 'data')
-rw-r--r--data/modules.example.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf
index a242c0a6d..58c167c86 100644
--- a/data/modules.example.conf
+++ b/data/modules.example.conf
@@ -671,6 +671,23 @@ module
query = "SELECT `email_addr` AS `email` FROM `my_users` WHERE `username` = @a@ AND `password` = MD5(CONCAT('salt', @p@))"
/*
+ * If your database uses a password hashing algorithm that can not be compared using a simple
+ * comparison function then you can specify it here to compare locally.
+ *
+ * You will need to have the appropriate encryption module (e.g. enc_bcrypt) loaded in order
+ * for this to work.
+ */
+ #password_hash = "bcrypt"
+
+ /*
+ * If using the password_hash field (above) you will need to specify the name of the field to
+ * fetch the password from.
+ *
+ * Defaults to "password" if not set.
+ */
+ #password_field = "password"
+
+ /*
* If set, the reason to give the users who try to "/msg NickServ REGISTER".
* If not set, then registration is not blocked.
*/