flows: disable compatibility_mode by default

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-30 17:18:43 +02:00
parent 3e9f5ec5ef
commit 1b8271d767
3 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,21 @@
# Generated by Django 3.2.6 on 2021-08-30 14:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("authentik_flows", "0023_alter_flow_background"),
]
operations = [
migrations.AlterField(
model_name="flow",
name="compatibility_mode",
field=models.BooleanField(
default=False,
help_text="Enable compatibility mode, increases compatibility with password managers on mobile devices.",
),
),
]

View File

@ -125,7 +125,7 @@ class Flow(SerializerModel, PolicyBindingModel):
) )
compatibility_mode = models.BooleanField( compatibility_mode = models.BooleanField(
default=True, default=False,
help_text=_( help_text=_(
"Enable compatibility mode, increases compatibility with " "Enable compatibility mode, increases compatibility with "
"password managers on mobile devices." "password managers on mobile devices."

View File

@ -243,7 +243,7 @@ export class FlowForm extends ModelForm<Flow, string> {
<input <input
type="checkbox" type="checkbox"
class="pf-c-check__input" class="pf-c-check__input"
?checked=${first(this.instance?.compatibilityMode, true)} ?checked=${first(this.instance?.compatibilityMode, false)}
/> />
<label class="pf-c-check__label"> ${t`Compatibility mode`} </label> <label class="pf-c-check__label"> ${t`Compatibility mode`} </label>
</div> </div>