Skip to content

Commit 5099119

Browse files
authored
Merge pull request #60 from caltechlibrary/email-config
Email config
2 parents 2f71da9 + bab833d commit 5099119

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

invenio.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ PPYq4pWYGD1Sc8SOXB+99YOD8hJObGIcskF0VRwv1Kg7rrTBqPLic7kcRA==
172172
# Note: keep in mind the string should match
173173
# given name for authentication provider
174174
'acs_handler': acs_handler_factory('caltechdata_sso'),
175+
'auto_confirm': True,
175176
}
176177
}
177178

@@ -433,3 +434,10 @@ RDM_RECORDS_IDENTIFIERS_SCHEMES = {
433434
}
434435
"""These are used for main, alternate and related identifiers."""
435436

437+
SECURITY_EMAIL_SENDER = "[email protected]"
438+
MAIL_SERVER = "smtp.gmail.com"
439+
MAIL_USERNAME = "[email protected]"
440+
MAIL_USE_SSL = True
441+
MAIL_PORT = 465
442+
443+
MAIL_SUPPRESS_SEND = False
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>{{ _('Please confirm your email for CaltechDATA through the link below:') }}</p>
2+
3+
<p><a href="{{ confirmation_link }}">{{ _('Confirm my CaltechDATA account') }}</a></p>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ _('Please confirm your email for CaltechDATA through the link below:') }}
2+
3+
{{ confirmation_link }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p><a href="{{ reset_link }}">{{ _('Click here to reset your CaltechDATA local password') }}</a></p>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ _('Click the link below to reset your CaltechDATA local password:') }}
2+
3+
{{ reset_link }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>{{ _('Your CaltechDATA local password has been reset. If you experience any issues, let us know at [email protected]') }}</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ _('Your CaltechDATA local password has been reset. If you experience any issues, please let us know at [email protected]') }}

0 commit comments

Comments
 (0)