Skip to content

Commit

Permalink
Move SettingsController into the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jaark committed Mar 16, 2018
1 parent 568916f commit ec47015
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function setid($otp) {
{
return ['success' => true ];
}
else
else
{
return ['success' => false];
return ['success' => false];
}
}

Expand All @@ -75,7 +75,7 @@ public function deleteid($keyId) {
else {
return ['success' => false ];
}

}

/**
Expand All @@ -85,7 +85,7 @@ public function deleteid($keyId) {
public function getids() {
$user = $this->userSession->getUser();
$keyId = $this->yubiotp->getKeyIds($user);

return ['keyId' => $keyId ];
}

Expand All @@ -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 ];
}

}
}

0 comments on commit ec47015

Please sign in to comment.