Fix wrong variable name...

This commit is contained in:
Kumi 2022-03-31 07:58:34 +02:00
parent 92568140f7
commit 3c10f3c70c

View file

@ -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())