diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-04-12 19:19:16 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-04-12 19:19:16 +0300 |
commit | b3e86fe2e8b6309b2c476726a79021b2f774482e (patch) | |
tree | 7112d35820c0392bfe999ed77bfd2f2c36a20e4b /lib/Settings | |
parent | 1a200fe6bf8e97accd63bb6f8e732bb01ab4fa50 (diff) |
Add UI mockup
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Settings')
-rw-r--r-- | lib/Settings/PersonalSettings.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/lib/Settings/PersonalSettings.php b/lib/Settings/PersonalSettings.php new file mode 100644 index 0000000..bc98354 --- /dev/null +++ b/lib/Settings/PersonalSettings.php @@ -0,0 +1,56 @@ +<?php + +declare (strict_types = 1); + +/** + * @author Christoph Wurst <christoph@winzerhof-wurst.at> + * + * Nextcloud - Two-factor SMS + * + * 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\TwoFactorSms\Settings; + +use OCP\AppFramework\Http\TemplateResponse; +use OCP\Settings\ISettings; + +class PersonalSettings implements ISettings +{ + + /** + * @return TemplateResponse + */ + public function getForm() + { + return new TemplateResponse('twofactor_sms', 'personal_settings'); + } + + /** + * @return string + */ + public function getSection() + { + return 'security'; + } + + /** + * @return int + */ + public function getPriority() + { + return 50; + } + +} |