summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-04 14:39:20 +0100
committerSadie Powell <sadie@witchery.services>2025-05-04 14:39:20 +0100
commit72f5e3580fdc68161642ee0f11a354dbc74fffeb (patch)
treee1bd6f46e8a76fe8194425e1af03e421bf2faafe /data
parent4b854d39357cbcfa43eb833949d48a49b0420ad6 (diff)
Also allow hashed RPC tokens in the config file.
Diffstat (limited to 'data')
-rw-r--r--data/modules.example.conf20
1 files changed, 19 insertions, 1 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf
index bb9e6f57a..243f77e09 100644
--- a/data/modules.example.conf
+++ b/data/modules.example.conf
@@ -672,7 +672,7 @@ module
/*
* If your database uses a password hashing algorithm that can not be compared using a simple
- * comparison method then you can specify it here to compare locally.
+ * 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.
@@ -820,6 +820,15 @@ module
/* The token used for authentication. */
token = "BmcxTaiYjoBtayfnxCFq"
+ /*
+ * The algorithm which the above token is hashed with. If this is not
+ * set then services will assume the above password is not hashed.
+ *
+ * You will need to have the appropriate encryption module (e.g.
+ * enc_bcrypt) loaded in order for this to work.
+ */
+ #token_hash = "bcrypt"
+
/** A list of glob patterns for methods the token can execute. */
methods = "~anope.message* anope.*"
}
@@ -867,6 +876,15 @@ module
/* The token used for authentication. */
token = "BmcxTaiYjoBtayfnxCFq"
+ /*
+ * The algorithm which the above token is hashed with. If this is not
+ * set then services will assume the above password is not hashed.
+ *
+ * You will need to have the appropriate encryption module (e.g.
+ * enc_bcrypt) loaded in order for this to work.
+ */
+ #token_hash = "bcrypt"
+
/** A list of glob patterns for methods the token can execute. */
methods = "~anope.message* anope.*"
}