mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
Fix wording in scripts/hash_passwords.py, fix brace in other file
This commit is contained in:
parent
9d475f1301
commit
72f2eb32ee
|
@ -16,7 +16,7 @@ def hash_password(password):
|
|||
|
||||
def auth_add_p_line(username, level, pwhash, salt):
|
||||
if level not in ('admin', 'mod', 'moderator', 'helper'):
|
||||
print("Warning: level ({}) not one of admin, mod and helper.".format(level), file=sys.stderr)
|
||||
print("Warning: level ({}) not one of admin, mod or helper.".format(level), file=sys.stderr)
|
||||
if repr(level) != "'{}'".format(level):
|
||||
print("Warning: level ({}) contains weird symbols, config line is possibly malformed.".format(level), file=sys.stderr)
|
||||
if repr(username) != "'{}'".format(username):
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
class CAuthManager
|
||||
{
|
||||
private:
|
||||
enum { //:(
|
||||
enum
|
||||
{
|
||||
AUTHED_NO = 0,
|
||||
AUTHED_HELPER,
|
||||
AUTHED_MOD,
|
||||
|
|
Loading…
Reference in a new issue