From 1b8271d7677b3e08ed2fd8db3b86cbd849259424 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 30 Aug 2021 17:18:43 +0200 Subject: [PATCH] flows: disable compatibility_mode by default Signed-off-by: Jens Langhammer --- .../0024_alter_flow_compatibility_mode.py | 21 +++++++++++++++++++ authentik/flows/models.py | 2 +- web/src/pages/flows/FlowForm.ts | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 authentik/flows/migrations/0024_alter_flow_compatibility_mode.py diff --git a/authentik/flows/migrations/0024_alter_flow_compatibility_mode.py b/authentik/flows/migrations/0024_alter_flow_compatibility_mode.py new file mode 100644 index 000000000..7b1d9f7eb --- /dev/null +++ b/authentik/flows/migrations/0024_alter_flow_compatibility_mode.py @@ -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.", + ), + ), + ] diff --git a/authentik/flows/models.py b/authentik/flows/models.py index 944bc09b1..aab6c795f 100644 --- a/authentik/flows/models.py +++ b/authentik/flows/models.py @@ -125,7 +125,7 @@ class Flow(SerializerModel, PolicyBindingModel): ) compatibility_mode = models.BooleanField( - default=True, + default=False, help_text=_( "Enable compatibility mode, increases compatibility with " "password managers on mobile devices." diff --git a/web/src/pages/flows/FlowForm.ts b/web/src/pages/flows/FlowForm.ts index a2d8c4993..bf1863616 100644 --- a/web/src/pages/flows/FlowForm.ts +++ b/web/src/pages/flows/FlowForm.ts @@ -243,7 +243,7 @@ export class FlowForm extends ModelForm {