<dl>
<dt>{lang}wcf.user.reauthentication.loginAs{/lang}</dt>
- <dd>{$__wcf->user->username}</dd>
+ <dd>
+ {$__wcf->user->username}
+
+ {* This field is required to assist password managers. *}
+ <input type="text" autocomplete="username" value="{$__wcf->user->username}" style="display: none">
+ </dd>
</dl>
-{if ENABLE_DEBUG_MODE && ENABLE_DEVELOPER_TOOLS && $__wcf->user->userID}
+{if ENABLE_DEBUG_MODE && ENABLE_DEVELOPER_TOOLS && $__wcf->user->userID && $__isLogin|empty}
<script data-relocate="true">
require(['Ajax', 'WoltLabSuite/Core/Language/Chooser'], function(Ajax, LanguageChooser) {
var item = elCreate('li');
<dd>
{$__wcf->user->username}
<small>{lang}wcf.user.reauthentication.logoutAndChangeUser{/lang}</small>
+
+ {* This field is required to assist password managers. *}
+ <input type="text" autocomplete="username" value="{$__wcf->user->username}" style="display: none">
</dd>
</dl>
$(function() {
if (jQuery.browser.touch) $('html').addClass('touch');
- {if $__wcf->user->userID}
+ {if $__wcf->user->userID && $__isLogin|empty}
new WCF.ACP.Search();
{/if}
{if $_sectionMenuItem->menuItem|in_array:$_activeMenuItems}{assign var=_acpPageSubMenuActive value=true}{/if}
{/foreach}
{/if}
- <div id="pageContainer" class="pageContainer{if !PACKAGE_ID || !$__wcf->user->userID} acpPageHiddenMenu{elseif $_acpPageSubMenuActive} acpPageSubMenuActive{/if}">
+ <div id="pageContainer" class="pageContainer{if !PACKAGE_ID || !$__wcf->user->userID || !$__isLogin|empty} acpPageHiddenMenu{elseif $_acpPageSubMenuActive} acpPageSubMenuActive{/if}">
{event name='beforePageHeader'}
{include file='pageHeader'}
-{if PACKAGE_ID && $__wcf->user->userID}
+{if PACKAGE_ID && $__wcf->user->userID && $__isLogin|empty}
{assign var=_activeMenuItems value=$__wcf->getACPMenu()->getActiveMenuItems()}
<nav id="acpPageMenu" class="acpPageMenu">
-{include file='header' pageTitle='wcf.user.reauthentication'}
+{include file='header' pageTitle='wcf.user.reauthentication' __isLogin=true}
+{*
<header class="contentHeader">
<div class="contentHeaderTitle">
<h1 class="contentTitle">{lang}wcf.user.reauthentication{/lang}</h1>
</header>
<p class="info" role="status">{lang}wcf.user.reauthentication.explanation{/lang}</p>
+*}
-{@$form->getHtml()}
+<div id="reauthentication" style="display: none">
+ {@$form->getHtml()}
+</div>
+
+<script data-relocate="true">
+ require(["WoltLabSuite/Core/Ui/Dialog"], (UiDialog) => {
+ UiDialog.openStatic("reauthentication", null, {
+ closable: false,
+ title: '{lang}wcf.user.reauthentication{/lang}',
+ onShow() {
+ setTimeout(() => {
+ document.getElementById("password").focus();
+ }, 2);
+ }
+ });
+ });
+</script>
{include file='footer'}
->templateName('__reauthenticationLoginAs'),
UserPasswordField::create()
->required()
+ ->autocomplete('current-password')
->autoFocus(),
]);
}
<item name="wcf.user.status.blacklistMatches"><![CDATA[Der Benutzer wurde aufgrund eines Treffers in der Datenbank von „Stop Forum Spam“ automatisch deaktiviert (Übereinstimmungen: {implode glue=', ' from=$user->getBlacklistMatchesTitle() item=matchLabel}{$matchLabel}{/implode}).]]></item>
<item name="wcf.user.reauthentication"><![CDATA[Erneute Authentifizierung]]></item>
<item name="wcf.user.reauthentication.explanation"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du betrittst einen besonders geschützten Bereich. Aus Sicherheitsgründen ist es notwendig, dass du dich durch Eingabe deines Kennworts erneut authentifizierst.{else}Sie betreten einen besonders geschützten Bereich. Aus Sicherheitsgründen ist es notwendig, dass Sie sich durch Eingabe Ihres Kennworts erneut authentifizieren.{/if}]]></item>
- <item name="wcf.user.reauthentication.loginAs"><![CDATA[Eingeloggt als]]></item>
+ <item name="wcf.user.reauthentication.loginAs"><![CDATA[Angemeldet als]]></item>
<item name="wcf.user.reauthentication.logoutAndChangeUser"><![CDATA[Nicht {$__wcf->user->username}? <a href="{link controller='FullLogout' application='wcf'}t={csrfToken type='url'}{/link}">Abmelden und Benutzer wechseln</a>.]]></item>
</category>
<category name="wcf.user.menu">