You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2020. It is now read-only.
Copy file name to clipboardexpand all lines: docs/settings.rst
+11-3
Original file line number
Diff line number
Diff line change
@@ -27,25 +27,33 @@ django-nopassword settings
27
27
By default, the login code url requires a POST request to authenticate the user. A GET request renders ``registration/login_submit.html``, which contains some Javascript that automatically performs the POST on page load. To authenticate directly inside the initial GET request instead, set this to ``False``.
28
28
29
29
.. attribute:: NOPASSWORD_CODE_LENGTH
30
+
30
31
The length of the code used to log people in. Default is 20.
31
32
32
33
.. attribute:: NOPASSWORD_TWILIO_SID
34
+
33
35
Account ID for Twilio.
34
36
35
37
.. attribute:: NOPASSWORD_TWILIO_AUTH_TOKEN
38
+
36
39
Account secret for Twilio
37
40
38
41
.. attribute:: NOPASSWORD_NUMERIC_CODES
42
+
39
43
A boolean flag if set to True, codes will contain numeric characters only (0-9). Default: False
40
44
41
45
Django settings used in django-nopassword
42
46
+++++++++++++++++++++++++++++++++++++++++
43
47
44
48
.. attribute:: SERVER_URL
45
49
46
-
Default: `example.com`
50
+
Default: `example.com`
47
51
48
-
.. attribute:: DEFAULT_FROM_EMAIL
52
+
By default, ``nopassword.views.login`` passes the result of ``result.get_host()`` to
53
+
``LoginCode.send_login_code`` to build the login URL. If you write your own view
54
+
and/or want to avoid this behavior by not passing a value for host, the
0 commit comments