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-01 17:29:04 +0100
commite59da00f40e33975cc8ab33fa4a9aca9262eb83e (patch)
tree562a7cfe9bc961477fdf2fd09b6270875fa30925 /application/controllers/user.php
parente9b1fc5637b8412038a9c400c983c526829b6664 (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()