Compare commits

...

2 Commits

2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,8 @@ def reset_password(token: str, password: str):
@Hook
def update_user(user):
current_app.config["FG_AUTH_BACKEND"].update_user(user)
if not user.display_name:
user.display_name = "{} {}.".format(user.firstname, user.lastname[0])
db.session.commit()

View File

@ -26,6 +26,10 @@ level = "DEBUG"
[DATABASE]
# engine = "mysql" (default)
host = "localhost"
user = "flaschengeist"
password = "flaschengeist"
database = "flaschengeist"
[FILES]
# Path for file / image uploads