Fixes #6556 Expose SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL (#13641)

Signed-off-by: Klaas Demter <Klaas-@users.noreply.github.com>
This commit is contained in:
Klaas Demter
2023-03-27 16:30:40 +02:00
committed by GitHub
parent bf98f62654
commit 32a5186eea
6 changed files with 37 additions and 1 deletions

View File

@@ -148,6 +148,16 @@ register(
placeholder=['username', 'email'],
)
register(
'SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL',
field_class=fields.BooleanField,
default=False,
label=_('Use Email address for usernames'),
help_text=_('Enabling this setting will tell social auth to use the full Email as username instead of the full name'),
category=_('Authentication'),
category_slug='authentication',
)
###############################################################################
# LDAP AUTHENTICATION SETTINGS
###############################################################################