diff options
| author | 2020-03-11 14:32:46 +0000 | |
|---|---|---|
| committer | 2020-03-11 15:06:19 +0000 | |
| commit | 0a67b8861adfca7b09e59d9639e26b6bf71859a5 (patch) | |
| tree | a478051a877b14b9a225e529949e90725f9412bd /include | |
| parent | Fix detection of the "plaintext" pseudo-hash being case sensitive. (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); |
