'Function processes user login. It is called in case all the login requirements are valid.'

def proceed_login(self, trans, user, redirect):

    message = ''
    trans.handle_user_login(user)
    if (trans.webapp.name == 'galaxy'):
        trans.log_event('User    logged    in')
        message = ('You    are    now    logged    in    as    %s.<br>You    can    <a    target="_top"    href="%s">go    back    to    the    page    you    were    visiting</a>    or    <a    target="_top"    href="%s">go    to    the    home    page</a>.' % (user.email, redirect, url_for('/')))
        if trans.app.config.require_login:
            message += ('        <a    target="_top"    href="%s">Click    here</a>    to    continue    to    the    home    page.' % web.url_for(controller='root', action='welcome'))
    success = True
    status = 'done'
    return (message, success, status)
