You've already forked snikket-web-portal
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:
@@ -80,6 +80,7 @@ class EditUserForm(BaseForm):
|
|||||||
("prosody:registered", _l("Normal user")),
|
("prosody:registered", _l("Normal user")),
|
||||||
("prosody:admin", _l("Administrator")),
|
("prosody:admin", _l("Administrator")),
|
||||||
],
|
],
|
||||||
|
default="prosody:registered",
|
||||||
)
|
)
|
||||||
|
|
||||||
action_save = wtforms.SubmitField(
|
action_save = wtforms.SubmitField(
|
||||||
|
|||||||
Reference in New Issue
Block a user