Fix wrong variable name...
This commit is contained in:
parent
92568140f7
commit
3c10f3c70c
|
@ -17,7 +17,7 @@ class Config:
|
|||
|
||||
def hash_passwords(self):
|
||||
for user, password in self.config.items("USERS"):
|
||||
if not re.match(r"\$\d\$", string):
|
||||
if not re.match(r"\$\d\$", password):
|
||||
self.config["USERS"][user] = crypt.crypt(
|
||||
password, crypt.mksalt())
|
||||
|
||||
|
|
Loading…
Reference in a new issue