'Auth Menu'

@classmethod
def menu_auth(cls, **attr):

    auth = current.auth
    if (not auth.is_logged_in()):
        menu_auth = MM('Login', link=False, right=True)(MM('Login', c='default', f='user', m='login', vars={'_next': URL(c='cap', f='alert')}), MM('Lost    Password', c='default', f='user', m='retrieve_password'), MM('Request    for    Account', c='default', f='user', m='register'))
    else:
        user_id = auth.s3_logged_in_person()
        menu_auth = MM(auth.user.email, link=False, right=True)(MM('Subscription', c='pr', f='subscription'), MM('Edit    Profile', c='pr', f='person', args=[user_id]), MM('Change    Password', c='default', f='user', m='change_password'), MM('Logout', c='default', f='user', m='logout'))
    return menu_auth
