-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix password recovery and add an \!important
- Loading branch information
1 parent
9892160
commit 4520445
Showing
6 changed files
with
42 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import logging | ||
|
||
from boogie.configurations import DjangoConf, env | ||
from .apps import InstalledAppsConf | ||
from .celery import CeleryConf | ||
from .constance import ConstanceConf | ||
from .email import EmailConf | ||
from .log import LoggingConf | ||
from .middleware import MiddlewareConf | ||
from .options import EjOptions | ||
from .paths import PathsConf | ||
from .security import SecurityConf | ||
from .themes import ThemesConf | ||
from .email import EmailConf | ||
from .. import fixes | ||
|
||
log = logging.getLogger('ej') | ||
|
@@ -36,7 +37,6 @@ class Conf(ThemesConf, | |
USING_DOCKER = env(False, name='USING_DOCKER') | ||
HOSTNAME = env('localhost') | ||
|
||
|
||
# | ||
# Accounts | ||
# | ||
|
@@ -94,14 +94,14 @@ class Conf(ThemesConf, | |
|
||
# Use this variable to change the ej environment during the docker build step. | ||
ENVIRONMENT = 'local' | ||
|
||
if (ENVIRONMENT == 'production'): | ||
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'; | ||
# the api key will be informed during the docker build step. | ||
ANYMAIL = {'MAILGUN_API_KEY': ''}; | ||
DEFAULT_FROM_EMAIL = "Empurrando Juntos <[email protected]>" | ||
HOSTNAME = 'https://ejplatform.org' | ||
|
||
DEFAULT_FROM_EMAIL = "Empurrando Juntos <[email protected]>" | ||
|
||
def get_email_backend(self): | ||
if self.ENVIRONMENT == 'production': | ||
self.ANYMAIL = {'MAILGUN_API_KEY': ''} | ||
return 'anymail.backends.mailgun.EmailBackend' | ||
else: | ||
return 'django.core.mail.backends.console.EmailBackend' | ||
|
||
|
||
Conf.save_settings(globals()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
src/ej_users/jinja2/ej_users/recover-password-message.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
{% block content %} | ||
{{_( | ||
"Hello ! | ||
You can use the following link to reset your password: | ||
{{ link }} | ||
Thanks, | ||
Your friends at Empurrando Juntos." | ||
)}} | ||
{% endblock %} | ||
{{ _('Hello!') }} | ||
|
||
{{ gettext('You can use the following link to reset your password: %(url)s.', url=url) }} | ||
|
||
{{ _('Thanks,\nYour friends at Empurrando Juntos.') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters