Skip to content

Commit

Permalink
Merge pull request #99 from OpenPecha/chore/PECHA-10-forgot_password
Browse files Browse the repository at this point in the history
Chore/pecha 10 forgot password
  • Loading branch information
tenkus47 authored Apr 3, 2024
2 parents 39e3643 + ef80eb9 commit 5016b19
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
14 changes: 12 additions & 2 deletions sefaria/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Django settings for sefaria project.

import os
import os.path
from django.utils.translation import ugettext_lazy as _
from dotenv import load_dotenv

load_dotenv()

relative_to_abs_path = lambda *x: os.path.join(os.path.dirname(
os.path.realpath(__file__)), *x)
Expand Down Expand Up @@ -365,4 +368,11 @@
}
DATA_UPLOAD_MAX_MEMORY_SIZE = 24000000

BASE_DIR = os.path.dirname(os.path.dirname(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(__file__))

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER")
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD") # Use the app password you generated
EMAIL_USE_TLS = True
2 changes: 1 addition & 1 deletion templates/registration/password_reset_email.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}

<html>
<p>{% trans "A request has been made to reset the password for this email address on Sefaria.org." %}</p>
<p>{% trans "A request has been made to reset the password for this email address on Pecha.org." %}</p>

<p>{% trans "Click this link, or copy it to your browser, to choose a new password:" %}</p>

Expand Down
2 changes: 1 addition & 1 deletion templates/registration/password_reset_email.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load i18n %}

{% trans "A request has been made to reset the password for this email address on Sefaria.org." %}
{% trans "A request has been made to reset the password for this email address on Pecha.org." %}

{% trans "Click this link, or copy it to your browser, to choose a new password:" %}

Expand Down
2 changes: 1 addition & 1 deletion templates/registration/password_reset_subject.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% load i18n %}{% autoescape off %}
{% trans "Sefaria.org Password Reset" %}
{% trans "Pecha.org Password Reset" %}
{% endautoescape %}

0 comments on commit 5016b19

Please sign in to comment.