From abb846aa04807a2eba22785f089115fe33860ca7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 26 Sep 2016 11:36:06 +0200 Subject: Remove special handling of cli clients Signed-off-by: Florian Pritz --- application/controllers/user.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'application/controllers/user.php') diff --git a/application/controllers/user.php b/application/controllers/user.php index a298d1076..28abf74a5 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -93,11 +93,7 @@ class User extends MY_Controller { $key = \service\user::create_apikey($userid, $comment, $access_level); - if (is_cli_client()) { - echo "$key\n"; - } else { - redirect("user/apikeys"); - } + redirect("user/apikeys"); } function delete_apikey() -- cgit v1.2.3-24-g4f1b