Use pwhash instead of passwd

This way we ensure that the initial password actually works and the user doesn't have to set a new one right away.
This commit is contained in:
Peter Pfeufer
2022-06-24 20:55:04 +02:00
parent bd5c2d8cbc
commit e296477880

View File

@@ -159,7 +159,7 @@ class SmfManager:
else:
try:
cursor.execute(cls.SQL_ADD_USER,
[username_clean, passwd, email_address, register_date, username_clean])
[username_clean, pwhash, email_address, register_date, username_clean])
cls.add_avatar(username_clean, characterid)
logger.info("Added smf member_name %s" % username_clean)
cls.update_groups(username_clean, groups)