Skip to content

Commit

Permalink
Merge pull request #623 from maykinmedia/feature/1462-add-2fa-sms-to-…
Browse files Browse the repository at this point in the history
…configurations

[#1462] Add 2FA-SMS boolean field to siteconfiguration
  • Loading branch information
alextreme authored May 21, 2023
2 parents 3326121 + e135969 commit e6c417b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/open_inwoner/configurations/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class SiteConfigurarionAdmin(OrderedInlineModelAdminMixin, SingletonModelAdmin):
"name",
"login_show",
"login_allow_registration",
"login_2fa_sms",
"redirect_to",
)
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 3.2.15 on 2023-05-17 07:04

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("configurations", "0041_siteconfiguration_redirect_to"),
]

operations = [
migrations.AddField(
model_name="siteconfiguration",
name="login_2fa_sms",
field=models.BooleanField(
default=False,
help_text="Whether we want the users to be able to log in with 2FA authentication by using an SMS workflow.",
verbose_name="Login with 2FA-with-SMS",
),
),
]
7 changes: 7 additions & 0 deletions src/open_inwoner/configurations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ class SiteConfiguration(SingletonModel):
"Wanneer deze optie uit staat is het enkel toegestaan om met DigiD in te loggen. Zet deze instelling aan om ook het inloggen met gebruikersnaam/wachtwoord en het aanmelden zonder DigiD toe te staan."
),
)
login_2fa_sms = models.BooleanField(
verbose_name=_("Login with 2FA-with-SMS"),
default=False,
help_text=_(
"Whether we want the users to be able to log in with 2FA authentication by using an SMS workflow."
),
)
login_text = models.TextField(
blank=True,
verbose_name=_("Login tekst"),
Expand Down

0 comments on commit e6c417b

Please sign in to comment.