Switch the confirmation email from fluxmonkey to quay.
This commit is contained in:
parent
a713555915
commit
ee41f79bcc
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ class MailConfig(object):
|
|||
MAIL_PORT = 587
|
||||
MAIL_USERNAME = 'AKIAIXV5SDGCPVMU3N4Q'
|
||||
MAIL_PASSWORD = 'AhmX/vWE91uQ2RtcEKTkfNrzZehEjPNXOXeOXgQNfLao'
|
||||
DEFAULT_MAIL_SENDER = 'support@fluxmonkey.io'
|
||||
DEFAULT_MAIL_SENDER = 'support@quay.io'
|
||||
MAIL_FAIL_SILENTLY = False
|
||||
TESTING = False
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@ from app import mail, app
|
|||
|
||||
CONFIRM_MESSAGE = """
|
||||
This email address was recently used to register the username '%s'
|
||||
at <a href="http://quay.io">Quay.io</a>.<br>
|
||||
at <a href="https://quay.io">Quay</a>.<br>
|
||||
<br>
|
||||
To confirm this email address, please click the following link:<br>
|
||||
<a href="http://quay.io/confirm?code=%s">http://quay.io/confirm?code=%s</a>
|
||||
<a href="https://quay.io/confirm?code=%s">https://quay.io/confirm?code=%s</a>
|
||||
"""
|
||||
|
||||
|
||||
def send_confirmation_email(username, email, token):
|
||||
msg = Message('Welcome to Quay! Please confirm your email.',
|
||||
sender='support@fluxmonkey.io', # Why do I need this?
|
||||
sender='support@quay.io', # Why do I need this?
|
||||
recipients=[email])
|
||||
msg.html = CONFIRM_MESSAGE % (username, token, token)
|
||||
mail.send(msg)
|
||||
|
|
Reference in a new issue