This commit is contained in:
Michał 2023-04-11 08:17:03 +00:00
parent ad834fd19a
commit b62d58b9fc
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ def create_app(): # pylint: disable=R0914
with app.app_context():
db.create_all()
register_user = db.Users(
register_user = Users(
username=app.config["ADMIN_CONF"]["username"],
email=app.config["ADMIN_CONF"]["username"],
password=generate_password_hash('changeme!', method="sha256"),

View file

@ -86,7 +86,7 @@ def register():
print(error)
return jsonify(error), 400
register_user = db.Users(
register_user = Users(
username=username,
email=email,
password=generate_password_hash(password, method="sha256"),