Settings

django-nopassword settings

django.conf.settings.NOPASSWORD_LOGIN_CODE_TIMEOUT

Default: 900

Defines how long a login code is valid in seconds.

django.conf.settings.NOPASSWORD_HASH_ALGORITHM

Default: 'sha256'

Set the algorithm for used in logincode generation. Possible values are those who are supported in hashlib. The value should be set as the name of the attribute in hashlib. Example hashlib.sha256() would be `NOPASSWORD_HASH_ALGORITHM = ‘sha256’.

django.conf.settings.NOPASSWORD_LOGIN_ON_GET

Default: False

By default, the login code url requires a POST request to authenticate the user. A GET request renders a form that must be submitted by the user to perform authentication. To authenticate directly inside the initial GET request instead, set this to True.

django.conf.settings.NOPASSWORD_CODE_LENGTH

Default: 20

The length of the code used to log people in.

django.conf.settings.NOPASSWORD_TWILIO_SID

Account ID for Twilio.

django.conf.settings.NOPASSWORD_TWILIO_AUTH_TOKEN

Account secret for Twilio

django.conf.settings.NOPASSWORD_NUMERIC_CODES

Default: False

A boolean flag if set to True, codes will contain numeric characters only (0-9).

Django settings used in django-nopassword

django.conf.settings.DEFAULT_FROM_EMAIL

Default: 'root@example.com'