-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from nextcloud/fix/settings-section
Show settings in 'security' section
- Loading branch information
Showing
6 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* @author Christoph Wurst <[email protected]> | ||
* | ||
* ownCloud - Two-factor TOPT | ||
* Two-factor TOTP | ||
* | ||
* This code is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3, | ||
|
@@ -23,5 +23,3 @@ | |
include_once __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$app = new Application(); | ||
|
||
OC_App::registerPersonal('twofactor_totp', 'settings/personal'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* @author Christoph Wurst <[email protected]> | ||
* | ||
* Two-factor TOTP | ||
* | ||
* This code is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3, | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License, version 3, | ||
* along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* | ||
*/ | ||
namespace OCA\TwoFactorTOTP\Settings; | ||
|
||
use OCP\AppFramework\Http\TemplateResponse; | ||
use OCP\Settings\ISettings; | ||
|
||
class Personal implements ISettings { | ||
|
||
/** | ||
* @return TemplateResponse | ||
*/ | ||
public function getForm() { | ||
return new TemplateResponse('twofactor_totp', 'personal'); | ||
} | ||
|
||
/** | ||
* @return string the section ID, e.g. 'sharing' | ||
*/ | ||
public function getSection() { | ||
return 'security'; | ||
} | ||
|
||
/** | ||
* @return int whether the form should be rather on the top or bottom of | ||
* the admin section. The forms are arranged in ascending order of the | ||
* priority values. It is required to return a value between 0 and 100. | ||
* | ||
* E.g.: 70 | ||
*/ | ||
public function getPriority() { | ||
return 40; | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters