Пример #1
0
def login():
    return UserController.login()
Пример #2
0
def login():
    if current_user.is_authenticated:
        return redirect(url_for('index'))
    return UserController.login()
Пример #3
0
def login():
    if not current_user.is_authenticated:  # if they're not already logged in
        return UserController.login()

    else:  # if they ARE already logged in
        return UserController.show_portal()