From 14b99e5a24f726bb5caf3549f5069d389a68439d Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 21 Oct 2016 09:39:33 +0100 Subject: [PATCH] Go to platform admin page when logging in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you’re a platform admin, you should go straight to the platform admin page when you log in. The all services page is just a crappier version of the same thing, without all the stats, etc. --- app/main/views/two_factor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views/two_factor.py b/app/main/views/two_factor.py index 022a189f5..c4d609d64 100644 --- a/app/main/views/two_factor.py +++ b/app/main/views/two_factor.py @@ -42,7 +42,7 @@ def two_factor(): return redirect(next_url) if current_user.platform_admin: - return redirect(url_for('main.show_all_services')) + return redirect(url_for('main.platform_admin')) if len(services) == 1: return redirect(url_for('main.service_dashboard', service_id=services[0]['id'])) else: