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 ]; } - + } }