Skip to content

Commit

Permalink
temporary solution to a secret keys problem
Browse files Browse the repository at this point in the history
  • Loading branch information
FREDERICO23 committed Dec 11, 2023
1 parent 871437a commit 45f2559
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
SECRET_KEY = 'django-insecure-cb$usm+&s6us22g(5bhlkr9jx+t(e2mdrg8^$j0(o#v49%p_c3' #env('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env('DEBUG') == 'True'
DEBUG = False #env('DEBUG') == 'True'

ALLOWED_HOSTS = ["*"]

Expand Down Expand Up @@ -169,8 +169,8 @@
}

SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=float(env('ACCESS_TOKEN_LIFETIME_MINUTES'))),
'REFRESH_TOKEN_LIFETIME': timedelta(days=float(env('REFRESH_TOKEN_LIFETIME_DAYS'))),
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=float(60)),# env('ACCESS_TOKEN_LIFETIME_MINUTES')
'REFRESH_TOKEN_LIFETIME': timedelta(days=float(30)), #env('REFRESH_TOKEN_LIFETIME_DAYS')
'ROTATE_REFRESH_TOKENS': True,
'BLACKLIST_AFTER_ROTATION': True,
'UPDATE_LAST_LOGIN': False,
Expand Down Expand Up @@ -220,12 +220,19 @@
CORS_ALLOW_CREDENTIALS = True

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = env('EMAIL_HOST')
EMAIL_USE_TLS = env('EMAIL_USE_TLS') == 'True'
EMAIL_PORT = env('EMAIL_PORT')
EMAIL_USE_SSL = env('EMAIL_USE_SSL') == 'True'
EMAIL_HOST_USER = env('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD')
EMAIL_HOST='smtp.gmail.com'
EMAIL_PORT=587
EMAIL_HOST_USER='[email protected]'
EMAIL_HOST_PASSWORD='Fred.9707.23'
EMAIL_USE_TLS=True
EMAIL_USE_SSL=False

# EMAIL_HOST = env('EMAIL_HOST')
# EMAIL_USE_TLS = env('EMAIL_USE_TLS') == 'True'
# EMAIL_PORT = env('EMAIL_PORT')
# EMAIL_USE_SSL = env('EMAIL_USE_SSL') == 'True'
# EMAIL_HOST_USER = env('EMAIL_HOST_USER')
# EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD')

AUTH_USER_MODEL = "accounts.User"

Expand Down

0 comments on commit 45f2559

Please sign in to comment.