summaryrefslogtreecommitdiffstats
path: root/application/controllers/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-26 11:36:06 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-05 19:44:15 +0100
commitabb846aa04807a2eba22785f089115fe33860ca7 (patch)
tree47e385c72ba443f708ed1158a2f7d3fa28c792ee /application/controllers/user.php
parent0dc7c62cb01cc23a02d08f3cf5e47da2fa1f8721 (diff)
Remove special handling of cli clients
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r--application/controllers/user.php6
1 files changed, 1 insertions, 5 deletions
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()