def login(): return UserController.login()
def login(): if current_user.is_authenticated: return redirect(url_for('index')) return UserController.login()
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()