fixed critical bug
This commit is contained in:
parent
f3cf929cc5
commit
fc5e422dc9
@ -31,6 +31,7 @@ def settings():
|
|||||||
|
|
||||||
config_form = ConfigForm()
|
config_form = ConfigForm()
|
||||||
user_form = UserForm()
|
user_form = UserForm()
|
||||||
|
user_form.role.choices += [(role, role) for role in settings_db.roles.split(",")]
|
||||||
with open(os.path.join(user_data_folder, "config.ini"), "r") as config_file:
|
with open(os.path.join(user_data_folder, "config.ini"), "r") as config_file:
|
||||||
config_form.config.data = config_file.read()
|
config_form.config.data = config_file.read()
|
||||||
files_html = load_files_html()
|
files_html = load_files_html()
|
||||||
|
@ -11,7 +11,7 @@ class UserForm(FlaskForm):
|
|||||||
|
|
||||||
password = PasswordField(validators=[DataRequired(), Length(min=8, max=120)])
|
password = PasswordField(validators=[DataRequired(), Length(min=8, max=120)])
|
||||||
|
|
||||||
role = SelectField(choices=[(role, role) for role in settings_db.roles.split(",")])
|
role = SelectField(choices=[])
|
||||||
|
|
||||||
id = StringField()
|
id = StringField()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user