mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Fix function call
This commit is contained in:
parent
a3c63e3c0f
commit
12928397ac
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue