Add setting for configurable login redirect URL

This commit is contained in:
Graham Mainwaring 2019-12-10 13:09:46 -05:00
parent 6fab3590ae
commit a8d34b46fb

View File

@ -62,3 +62,14 @@ register(
category=_('Authentication'),
category_slug='authentication',
)
register(
'LOGIN_REDIRECT_OVERRIDE',
field_class=fields.CharField,
allow_blank=True,
required=False,
label=_('Login redirect override URL'),
help_text=_('URL to which unauthorized users will be redirected to log in. '
'If blank, users will be sent to the Tower login page.'),
category=_('Authentication'),
category_slug='authentication',
)