Specify a default role in invite form

The role creation appears to fail without an error, only refreshing the
page unless a role is selected.
This commit is contained in:
Kim Alvefur
2024-04-19 15:27:49 +02:00
parent 041f26274b
commit d4883765b2

View File

@@ -80,6 +80,7 @@ class EditUserForm(BaseForm):
("prosody:registered", _l("Normal user")),
("prosody:admin", _l("Administrator")),
],
default="prosody:registered",
)
action_save = wtforms.SubmitField(