'Function resends the verification email in case user wants to log in with an inactive account or he clicks the resend link.'

def resend_verification_email(self, trans, email, username):

    if (email is None):
        email = trans.user.email
    if (username is None):
        username = trans.user.username
    is_activation_sent = self.send_verification_email(trans, email, username)
    if is_activation_sent:
        message = ('This    account    has    not    been    activated    yet.    The    activation    link    has    been    sent    again.    Please    check    your    email    address    <b>%s</b>    including    the    spam/trash    folder.<br><a    target="_top"    href="%s">Return    to    the    home    page</a>.' % (escape(email), url_for('/')))
        status = 'error'
    else:
        message = ('This    account    has    not    been    activated    yet    but    we    are    unable    to    send    the    activation    link.    Please    contact    your    local    Galaxy    administrator.<br><a    target="_top"    href="%s">Return    to    the    home    page</a>.' % url_for('/'))
        status = 'error'
        if (trans.app.config.error_email_to is not None):
            message += ('<br>Error    contact:    %s' % trans.app.config.error_email_to)
    return (message, status)
