From ec47015cf79001035b0e41a18f4eae43835440c6 Mon Sep 17 00:00:00 2001 From: David Sexton Date: Fri, 16 Mar 2018 16:19:32 +0000 Subject: [PATCH] Move SettingsController into the correct directory --- .../Controller/SettingsController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename controller/settingscontroller.php => lib/Controller/SettingsController.php (96%) diff --git a/controller/settingscontroller.php b/lib/Controller/SettingsController.php similarity index 96% rename from controller/settingscontroller.php rename to lib/Controller/SettingsController.php index 1a1e1e2..bd1c1d2 100755 --- a/controller/settingscontroller.php +++ b/lib/Controller/SettingsController.php @@ -56,9 +56,9 @@ public function setid($otp) { { return ['success' => true ]; } - else + else { - return ['success' => false]; + return ['success' => false]; } } @@ -75,7 +75,7 @@ public function deleteid($keyId) { else { return ['success' => false ]; } - + } /** @@ -85,7 +85,7 @@ public function deleteid($keyId) { public function getids() { $user = $this->userSession->getUser(); $keyId = $this->yubiotp->getKeyIds($user); - + return ['keyId' => $keyId ]; } @@ -96,13 +96,13 @@ public function getids() { * @return JSONResponse */ public function testotp($otp) { - + if( $this->yubiotp->validateTestOTP($otp) ){ return ['success' => true ]; } else { return ['success' => false ]; } - + } }