{/if}
{if $action == 'add' || $__wcf->session->getPermission('admin.user.canEditPassword')}
- <section class="section">
- <h2 class="sectionTitle">{lang}wcf.user.password{/lang}</h2>
-
- <dl{if $errorType.password|isset} class="formError"{/if}>
- <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt>
- <dd>
- <input type="password" id="password" name="password" value="{$password}" class="medium" autocomplete="off">
- {if $errorType.password|isset}
- <small class="innerError">
- {if $errorType.password == 'empty'}
- {lang}wcf.global.form.error.empty{/lang}
- {else}
- {lang}wcf.user.password.error.{@$errorType.password}{/lang}
- {/if}
- </small>
- {/if}
- </dd>
- </dl>
-
- <dl{if $errorType.confirmPassword|isset} class="formError"{/if}>
- <dt><label for="confirmPassword">{lang}wcf.user.confirmPassword{/lang}</label></dt>
- <dd>
- <input type="password" id="confirmPassword" name="confirmPassword" value="{$confirmPassword}" class="medium" autocomplete="off">
- {if $errorType.confirmPassword|isset}
- <small class="innerError">
- {lang}wcf.user.confirmPassword.error.{@$errorType.confirmPassword}{/lang}
- </small>
- {/if}
- </dd>
- </dl>
-
- {event name='passwordFields'}
- </section>
+ {if $action == 'edit' && !$user->authData|empty}
+ <section class="section">
+ <h2 class="sectionTitle">{lang}wcf.user.3rdparty{/lang}</h2>
+
+ <div class="info">{lang}wcf.user.3rdparty.connect.info{/lang}</div>
+ </section>
+ {else}
+ <section class="section">
+ <h2 class="sectionTitle">{lang}wcf.user.password{/lang}</h2>
+
+ <dl{if $errorType.password|isset} class="formError"{/if}>
+ <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt>
+ <dd>
+ <input type="password" id="password" name="password" value="{$password}" class="medium" autocomplete="off">
+ {if $errorType.password|isset}
+ <small class="innerError">
+ {if $errorType.password == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.user.password.error.{@$errorType.password}{/lang}
+ {/if}
+ </small>
+ {/if}
+ </dd>
+ </dl>
+
+ <dl{if $errorType.confirmPassword|isset} class="formError"{/if}>
+ <dt><label for="confirmPassword">{lang}wcf.user.confirmPassword{/lang}</label></dt>
+ <dd>
+ <input type="password" id="confirmPassword" name="confirmPassword" value="{$confirmPassword}" class="medium" autocomplete="off">
+ {if $errorType.confirmPassword|isset}
+ <small class="innerError">
+ {lang}wcf.user.confirmPassword.error.{@$errorType.confirmPassword}{/lang}
+ </small>
+ {/if}
+ </dd>
+ </dl>
+
+ {event name='passwordFields'}
+ </section>
+ {/if}
{/if}
{if $action == 'edit' && $__wcf->session->getPermission('admin.user.canBanUser') && $__wcf->user->userID != $userID}
<item name="wcf.user.3rdparty.google.connect.error.inuse"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Dein{else}Ihr{/if} Google-Konto ist bereits mit einem anderen Benutzerkonto verknüpft.]]></item>
<item name="wcf.user.3rdparty.google.disconnect"><![CDATA[Verknüpfung mit Google trennen]]></item>
<item name="wcf.user.3rdparty.google.disconnect.success"><![CDATA[Die Verknüpfung mit {if LANGUAGE_USE_INFORMAL_VARIANT}deinem{else}Ihrem{/if} Google-Konto wurde erfolgreich getrennt.]]></item>
+ <item name="wcf.user.3rdparty.connect.info"><![CDATA[Der Benutzer ist mit {lang}wcf.user.3rdparty.{$user->getAuthProvider()}{/lang} verknüpft.]]></item>
</category>
<category name="wcf.user.avatar">
<item name="wcf.user.avatar"><![CDATA[Avatar]]></item>
<item name="wcf.user.3rdparty.google.connect.error.inuse"><![CDATA[Your Google account is already connected to a different user.]]></item>
<item name="wcf.user.3rdparty.google.disconnect"><![CDATA[Cancel connection with Google]]></item>
<item name="wcf.user.3rdparty.google.disconnect.success"><![CDATA[Your account is no longer connected with Google.]]></item>
+ <item name="wcf.user.3rdparty.connect.info"><![CDATA[The user is connected with {lang}wcf.user.3rdparty.{$user->getAuthProvider()}{/lang}.]]></item>
</category>
<category name="wcf.user.avatar">
<item name="wcf.user.avatar"><![CDATA[Avatar]]></item>