mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #661 from heinrich5991/pr_ddnet_minor_fixes
Fix wording in scripts/hash_passwords.py, fix brace in other file
This commit is contained in:
commit
9d12b764c3
|
@ -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