Пример #1
0
def send_password_reset_email(user):
    send_email(
        to=user.email,
        subject='{site} {subject}'.format(
            site=app.config['SITE_NAME'],
            subject=_('password reset request'),
        ),
        html=render_template(
            'communications/password_reset_email.html',
            user=user,
            app=app,
            token=user.get_auth_token(),
        ),
    )
Пример #2
0
def send_password_reset_email(user):
    send_email(
        to=user.email,
        subject='{site} {subject}'.format(
            site=app.config['SITE_NAME'],
            subject=_('password reset request'),
        ),
        html=render_template(
            'communications/password_reset_email.html',
            user=user,
            app=app,
            token=user.get_auth_token(),
        ),
    )
Пример #3
0
def send_confirmation_email(user):
    send_email(
        to=user.email,
        subject='{site} {subject}'.format(
            site=app.config['SITE_NAME'],
            subject=_('email confirmation'),
        ),
        html=render_template(
            'communications/confirm_email.html',
            user=user,
            app=app,
            token=user.get_auth_token_perm(),
        ),
    )
Пример #4
0
def send_confirmation_email(user):
    send_email(
        to=user.email,
        subject='{site} {subject}'.format(
            site=app.config['SITE_NAME'],
            subject=_('email confirmation'),
        ),
        html=render_template(
            'communications/confirm_email.html',
            user=user,
            app=app,
            token=user.get_auth_token_perm(),
        ),
    )