From b46e93fd26da036811a3715ce9334d8eeeedd7b8 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 29 Jan 2021 23:01:13 +0100 Subject: [PATCH] [System] UserController: Passwords should be strings * Even the inital dummy password --- flaschengeist/controller/userController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaschengeist/controller/userController.py b/flaschengeist/controller/userController.py index 02cfc56..111db65 100644 --- a/flaschengeist/controller/userController.py +++ b/flaschengeist/controller/userController.py @@ -179,7 +179,7 @@ def register(data): user = User(**values) set_roles(user, roles) - password = secrets.token_bytes(16) + password = secrets.token_urlsafe(16) current_app.config["FG_AUTH_BACKEND"].create_user(user, password) db.session.add(user) db.session.commit()