diff options
author | Sadie Powell <sadie@witchery.services> | 2020-03-11 14:32:46 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-03-11 15:06:19 +0000 |
commit | 0a67b8861adfca7b09e59d9639e26b6bf71859a5 (patch) | |
tree | a478051a877b14b9a225e529949e90725f9412bd /include | |
parent | 55882c39f1025e29674c42741ee1e00ec8c2169e (diff) |
Warn if the server config contains an unhashed password.
This will be made a hard failure in v4.
Diffstat (limited to 'include')
-rw-r--r-- | include/users.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h index ca9c3f557..c08be8c6f 100644 --- a/include/users.h +++ b/include/users.h @@ -149,6 +149,12 @@ struct CoreExport ConnectClass : public refcountbase */ insp::flat_set<int> ports; + /** If non-empty then the password a user must specify in PASS to be assigned to this class. */ + std::string password; + + /** If non-empty then the hash algorithm that the password field is hashed with. */ + std::string passwordhash; + /** Create a new connect class with no settings. */ ConnectClass(ConfigTag* tag, char type, const std::string& mask); |