Commit 4ab3558d authored by Noe Nieto's avatar Noe Nieto 💬

configure expiration of password recover tokens (Purism/LibremOne/task#203)

parent e20543ba
Pipeline #5617 failed with stage
......@@ -37,5 +37,5 @@ OVPN_HOSTNAME=ssh.example.com
OVPN_PORT=22
OVPN_USERNAME=username
OVPN_FILEPATH="/path/to/{IDENTITY}/{IDENTITY}.ovpn"
TUNNEL_HOST=https://example.com
\ No newline at end of file
TUNNEL_HOST=https://example.com
PASSWORD_RESET_TOKEN_EXPIRES=1800
\ No newline at end of file
......@@ -244,3 +244,18 @@ REST_FRAMEWORK = {
'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10
}
#
# django password recover: 30 min
#
PASSWORD_RESET_TOKEN_EXPIRES = secret_config('PASSWORD_RESET_TOKEN_EXPIRES')
if DEBUG:
# Use Mailtrap for development (https://source.puri.sm/snippets/56)
EMAIL_HOST = '127.0.0.1'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 1025
EMAIL_USE_TLS = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment