Fix check for already existing username in add_user. Add documentation of process for storing and validating hashed passwords.

This commit is contained in:
James Valleroy authored and Nick Daly committed 2013-11-11 07:31:53 -06:00
1 parent f7ad1089a5
commit 3a696e0bb9
3 files changed
+32 -2

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ def add_user(username, passphrase, name='', email='', expert=False):
error = "Password is too long."
if error is None:
if username in cfg.users.get_all():
if username in map(lambda x: x[0], cfg.users.get_all()):
error = "User already exists!"
else:
di = {