From bf27d2750c620720305aefcfecad09b887faec56 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Mon, 26 Oct 2020 14:58:50 +0100 Subject: [PATCH] Add account security page --- com.woltlab.wcf/page.xml | 12 ++++++++ com.woltlab.wcf/templates/accountSecurity.tpl | 7 +++++ com.woltlab.wcf/userMenu.xml | 9 ++++-- .../lib/page/AccountSecurityPage.class.php | 29 +++++++++++++++++++ wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 6 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 com.woltlab.wcf/templates/accountSecurity.tpl create mode 100644 wcfsetup/install/files/lib/page/AccountSecurityPage.class.php diff --git a/com.woltlab.wcf/page.xml b/com.woltlab.wcf/page.xml index f47b04c5cb..bfdbaedc5f 100644 --- a/com.woltlab.wcf/page.xml +++ b/com.woltlab.wcf/page.xml @@ -90,6 +90,18 @@ Benutzerkonto-Verwaltung + + system + wcf\page\AccountSecurityPage + Benutzerkonto-Sicherheit + Account Security + + Account Security + + + Benutzerkonto-Sicherheit + + system wcf\form\AvatarEditForm diff --git a/com.woltlab.wcf/templates/accountSecurity.tpl b/com.woltlab.wcf/templates/accountSecurity.tpl new file mode 100644 index 0000000000..ccb4ffae54 --- /dev/null +++ b/com.woltlab.wcf/templates/accountSecurity.tpl @@ -0,0 +1,7 @@ +{include file='userMenuSidebar'} + +{include file='header' __disableAds=true __sidebarLeftHasMenu=true} + +{* @TODO *} + +{include file='footer' __disableAds=true} diff --git a/com.woltlab.wcf/userMenu.xml b/com.woltlab.wcf/userMenu.xml index 0bca42fdb9..1b0553fb23 100644 --- a/com.woltlab.wcf/userMenu.xml +++ b/com.woltlab.wcf/userMenu.xml @@ -11,17 +11,22 @@ wcf.user.menu.profile 1 + + wcf\page\AccountSecurityPage + wcf.user.menu.profile + 2 + wcf\form\AvatarEditForm wcf.user.menu.profile - 2 + 3 wcf\form\SignatureEditForm wcf.user.menu.profile module_user_signature user.signature.canEditSignature - 3 + 4 diff --git a/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php b/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php new file mode 100644 index 0000000000..dbd0061a78 --- /dev/null +++ b/wcfsetup/install/files/lib/page/AccountSecurityPage.class.php @@ -0,0 +1,29 @@ + + * @package WoltLabSuite\Core\Page + * @since 5.4 + */ +class AccountSecurityPage extends AbstractPage { + /** + * @inheritDoc + */ + public $loginRequired = true; + + /** + * @inheritDoc + */ + public function show() { + // set active tab + UserMenu::getInstance()->setActiveMenuItem('wcf.user.menu.profile.security'); + + parent::show(); + } +} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index a0ebe1cc23..de506e6845 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -4743,6 +4743,7 @@ sich{/if} nicht bei uns registriert {if LANGUAGE_USE_INFORMAL_VARIANT}hast{else} + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 0863d05e37..b05416d052 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4741,6 +4741,7 @@ not register with us.]]> + -- 2.20.1