From 72f5e3580fdc68161642ee0f11a354dbc74fffeb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 May 2025 14:39:20 +0100 Subject: Also allow hashed RPC tokens in the config file. --- data/modules.example.conf | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'data') 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.*" } -- cgit