1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Fix function call

This commit is contained in:
Mo 2022-05-17 02:36:37 +02:00
parent a3c63e3c0f
commit 12928397ac

View file

@ -238,7 +238,7 @@ class UserView(SecureAdminModelView):
if hasattr(form, "generate_new_password") and form.generate_new_password.data:
password = randomPassword()
UserView.flashPassword(password)
flashRandomPassword(password)
admin_change_password(
model, password, notify=False
@ -258,7 +258,7 @@ class UserView(SecureAdminModelView):
def after_model_change(self, form, model, is_created):
if is_created:
flash(
f"{model.email} registered with roles: {', '.join([role.name for role in model.roles])}.",
f"{model.email} registered with role(s): {', '.join([role.name for role in model.roles])}.",
category="success",
)