Ver código fonte

add reset password functionality

pull/342/head
Guillaume Vincent 8 anos atrás
pai
commit
f35e0b6c87
1 arquivos alterados com 7 adições e 1 exclusões
  1. +7
    -1
      lesspass/settings.py

+ 7
- 1
lesspass/settings.py Ver arquivo

@@ -31,6 +31,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'corsheaders',
'djoser',
'api'
]

@@ -124,7 +125,7 @@ JWT_AUTH = {
'JWT_ALLOW_REFRESH': True,
}

EMAIL_BACKEND = 'django.api.mail.backends.console.EmailBackend'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
@@ -169,3 +170,8 @@ if 'test' in sys.argv[1:] or 'jenkins' in sys.argv[1:]:
TEMPLATE_DEBUG = False
TESTS_IN_PROGRESS = True
MIGRATION_MODULES = DisableMigrations()

DJOSER = {
'PASSWORD_RESET_CONFIRM_URL': '#/password/reset/confirm/{uid}/{token}',
'ACTIVATION_URL': '#/activate/{uid}/{token}'
}

Carregando…
Cancelar
Salvar