This repository has been archived on 2026-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
RepApp/docs/dev/apps.md

1,011 B

Apps

The repapp is split into different modules, realized as Django apps, to improve the maintainability.

One time login

The one time login module provides a login for guests using a one time secret as part of an URL.

Settings

Configuration

To enable the one time login links, an additional authentication backend must get added:

# Repapp specific authentication backends
AUTHENTICATION_BACKENDS = [
    # Backend for one time logins
    "one_time_login.authentication_backends.OneTimeLoginBackend",
]

The one time login urls must get added using namespace one_time_login:

urlpatterns = i18n_patterns(
    ...
    path(_('one_time_login/'),
         include('one_time_login.urls', namespace='one_time_login')),
    ...
)