remove email related code
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 9s
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 9s
This commit is contained in:
+1
-16
@@ -52,10 +52,8 @@ INSTALLED_APPS = [
|
||||
"django.contrib.sessions",
|
||||
"django.contrib.messages",
|
||||
"rest_framework",
|
||||
"django_rest_passwordreset",
|
||||
"djangopasswordlessknox",
|
||||
"django_extensions",
|
||||
"django_seed",
|
||||
"storages",
|
||||
"whitenoise.runserver_nostatic",
|
||||
"django.contrib.staticfiles",
|
||||
@@ -339,24 +337,11 @@ logging.config.dictConfig(
|
||||
)
|
||||
|
||||
|
||||
EMAIL_BACKEND = (
|
||||
"django.core.mail.backends.smtp.EmailBackend" # Replace with your preferred backend
|
||||
)
|
||||
EMAIL_HOST = env("EMAIL_HOSTNAME", default="") # type: ignore
|
||||
EMAIL_PORT = env("EMAIL_PORT", cast=int, default=25) # type: ignore
|
||||
EMAIL_HOST_USER = env("EMAIL_USERNAME", default="") # type: ignore
|
||||
EMAIL_HOST_PASSWORD = env("EMAIL_PASSWORD", default="") # type: ignore
|
||||
# DEFAULT_FROM_EMAIL = "noreply@sarlink.net"
|
||||
EMAIL_USE_TLS = True
|
||||
|
||||
|
||||
PASSWORDLESS_AUTH = {
|
||||
# 'PASSWORDLESS_EMAIL_TOKEN_HTML_TEMPLATE_NAME': "password_reset_email.html",
|
||||
"PASSWORDLESS_AUTH_TYPES": ["EMAIL", "MOBILE"],
|
||||
"PASSWORDLESS_AUTH_TYPES": ["MOBILE"],
|
||||
"PASSWORDLESS_USER_MOBILE_FIELD_NAME": "mobile",
|
||||
"PASSWORDLESS_TEST_SUPPRESSION": False,
|
||||
"PASSWORDLESS_REGISTER_NEW_USERS": True,
|
||||
"PASSWORDLESS_EMAIL_NOREPLY_ADDRESS": "noreply@sarlink.net",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -27,10 +27,6 @@ from drf_spectacular.views import (
|
||||
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path(
|
||||
"api/password_reset/",
|
||||
include("django_rest_passwordreset.urls", namespace="password_reset"),
|
||||
),
|
||||
path("", include("djangopasswordlessknox.urls")),
|
||||
# Authentication
|
||||
path("api/auth/", include("api.urls")),
|
||||
|
||||
Reference in New Issue
Block a user