瀏覽代碼

add reset password functionality

pull/342/head
Guillaume Vincent 8 年之前
父節點
當前提交
f35e0b6c87
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      lesspass/settings.py

+ 7
- 1
lesspass/settings.py 查看文件

@@ -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}'
}

Loading…
取消
儲存