1 {include file='userMenuSidebar'}
3 {include file='header' __disableAds=true}
5 {include file='formError'}
7 <p class="warning">{lang}wcf.user.accountManagement.warning{/lang}</p>
9 {if $success|isset && $success|count > 0}
11 {foreach from=$success item=successMessage}
12 <p>{lang}{@$successMessage}{/lang}</p>
17 {assign var=__authProvider value=$__wcf->getUserProfileHandler()->getAuthProvider()}
19 <form method="post" action="{link controller='AccountManagement'}{/link}">
21 <section class="section">
22 <h2 class="sectionTitle">{lang}wcf.user.password{/lang}</h2>
24 <dl{if $errorField == 'password'} class="formError"{/if}>
25 <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt>
27 <input type="password" id="password" name="password" value="" required class="medium">
28 {if $errorField == 'password'}
29 <small class="innerError">
30 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
31 {if $errorType == 'false'}{lang}wcf.user.password.error.false{/lang}{/if}
34 <small>{lang}wcf.user.accountManagement.password.description{/lang}</small>
35 <small><a href="{link controller='LostPassword'}{/link}">{lang}wcf.user.lostPassword{/lang}</a></small>
39 {event name='passwordFields'}
43 {if $__wcf->getSession()->getPermission('user.profile.canRename')}
44 <section class="section">
45 <h2 class="sectionTitle">{lang}wcf.user.changeUsername{/lang}</h2>
47 <dl{if $errorField == 'username'} class="formError"{/if}>
48 <dt><label for="username">{lang}wcf.user.newUsername{/lang}</label></dt>
50 <input type="text" id="username" name="username" value="{$username}" required pattern="^[^,]{ldelim}{REGISTER_USERNAME_MIN_LENGTH},{REGISTER_USERNAME_MAX_LENGTH}}$" class="medium">
52 {if $errorField == 'username'}
53 <small class="innerError">
54 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
55 {if $errorType == 'invalid'}{lang}wcf.user.username.error.invalid{/lang}{/if}
56 {if $errorType == 'notUnique'}{lang}wcf.user.username.error.notUnique{/lang}{/if}
57 {if $errorType == 'alreadyRenamed'}{lang}wcf.user.username.error.alreadyRenamed{/lang}{/if}
60 {if $renamePeriod > 0}
61 <small>{lang}wcf.user.changeUsername.description{/lang}</small>
66 {event name='changeUsernameFields'}
71 <section class="section">
72 <h2 class="sectionTitle">{lang}wcf.user.changePassword{/lang}</h2>
74 <dl{if $errorField == 'newPassword'} class="formError"{/if}>
75 <dt><label for="newPassword">{lang}wcf.user.newPassword{/lang}</label></dt>
77 <input type="password" id="newPassword" name="newPassword" value="{$newPassword}" class="medium">
79 {if $errorField == 'newPassword'}
80 <small class="innerError">
81 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
82 {if $errorType == 'notSecure'}{lang}wcf.user.password.error.notSecure{/lang}{/if}
88 <dl{if $errorField == 'confirmNewPassword'} class="formError"{/if}>
89 <dt><label for="confirmNewPassword">{lang}wcf.user.confirmPassword{/lang}</label></dt>
91 <input type="password" id="confirmNewPassword" name="confirmNewPassword" value="{$confirmNewPassword}" class="medium">
93 {if $errorField == 'confirmNewPassword'}
94 <small class="innerError">
95 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
96 {if $errorType == 'notEqual'}{lang}wcf.user.confirmPassword.error.notEqual{/lang}{/if}
102 {event name='changePasswordFields'}
106 {if $__wcf->getSession()->getPermission('user.profile.canChangeEmail')}
107 <section class="section">
108 <h2 class="sectionTitle">{lang}wcf.user.changeEmail{/lang}</h2>
110 <dl{if $errorField == 'email'} class="formError"{/if}>
111 <dt><label for="email">{lang}wcf.user.newEmail{/lang}</label></dt>
113 <input type="email" id="email" name="email" value="{$email}" class="medium">
115 {if $errorField == 'email'}
116 <small class="innerError">
117 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
118 {if $errorType == 'invalid'}{lang}wcf.user.email.error.invalid{/lang}{/if}
119 {if $errorType == 'notUnique'}{lang}wcf.user.email.error.notUnique{/lang}{/if}
125 <dl{if $errorField == 'confirmEmail'} class="formError"{/if}>
126 <dt><label for="confirmEmail">{lang}wcf.user.confirmEmail{/lang}</label></dt>
128 <input type="email" id="confirmEmail" name="confirmEmail" value="{$confirmEmail}" class="medium">
130 {if $errorField == 'confirmEmail'}
131 <small class="innerError">
132 {if $errorType == 'notEqual'}{lang}wcf.user.confirmEmail.error.notEqual{/lang}{/if}
138 {event name='changeEmailFields'}
140 {if REGISTER_ACTIVATION_METHOD == 1 && $__wcf->getUser()->reactivationCode != 0}
144 <small>{lang newEmail=$__wcf->user->newEmail}wcf.user.changeEmail.needReactivation{/lang}</small>
145 <small><a href="{link controller='EmailActivation'}{/link}"><span>{lang}wcf.user.emailActivation{/lang}</span></a></small>
152 {if $__wcf->getSession()->getPermission('user.profile.canQuit')}
153 <section class="section">
154 <h2 class="sectionTitle">{lang}wcf.user.quit{/lang}</h2>
160 <label><input type="checkbox" name="cancelQuit" value="1"{if $cancelQuit == 1} checked{/if}> {lang}wcf.user.quit.cancel{/lang}</label>
167 <label><input type="checkbox" name="quit" value="1"{if $quit == 1} checked{/if}> {lang}wcf.user.quit.sure{/lang}</label>
168 <small>{lang}wcf.user.quit.description{/lang}</small>
173 {event name='quitFields'}
178 <section class="section" id="3rdParty">
179 <h2 class="sectionTitle">{lang}wcf.user.3rdparty{/lang}</h2>
184 <dt>{lang}wcf.user.3rdparty.{@$__authProvider}{/lang}</dt>
186 <label><input type="checkbox" name="{@$__authProvider}Disconnect" value="1"> {lang}wcf.user.3rdparty.{@$__authProvider}.disconnect{/lang}</label>
189 {elseif !$__wcf->getUser()->hasAdministrativeAccess()}
190 {if GITHUB_PUBLIC_KEY !== '' && GITHUB_PRIVATE_KEY !== ''}
192 <dt>{lang}wcf.user.3rdparty.github{/lang}</dt>
194 {if $__wcf->getSession()->getVar('__githubToken')}
195 <label><input type="checkbox" name="githubConnect" value="1"{if $githubConnect} checked{/if}> {lang}wcf.user.3rdparty.github.connect{/lang}</label>
197 <a href="{link controller='GithubAuth'}{/link}" class="thirdPartyLoginButton githubLoginButton"><span class="icon icon16 fa-github"></span> <span>{lang}wcf.user.3rdparty.github.connect{/lang}</span></a>
203 {if TWITTER_PUBLIC_KEY !== '' && TWITTER_PRIVATE_KEY !== ''}
205 <dt>{lang}wcf.user.3rdparty.twitter{/lang}</dt>
207 {if $__wcf->getSession()->getVar('__twitterData')}
208 <label><input type="checkbox" name="twitterConnect" value="1"{if $twitterConnect} checked{/if}> {lang}wcf.user.3rdparty.twitter.connect{/lang}</label>
210 <a href="{link controller='TwitterAuth'}{/link}" class="thirdPartyLoginButton twitterLoginButton"><span class="icon icon16 fa-twitter"></span> <span>{lang}wcf.user.3rdparty.twitter.connect{/lang}</span></a>
216 {if FACEBOOK_PUBLIC_KEY !== '' && FACEBOOK_PRIVATE_KEY !== ''}
218 <dt>{lang}wcf.user.3rdparty.facebook{/lang}</dt>
220 {if $__wcf->getSession()->getVar('__facebookData')}
221 <label><input type="checkbox" name="facebookConnect" value="1"{if $facebookConnect} checked{/if}> {lang}wcf.user.3rdparty.facebook.connect{/lang}</label>
223 <a href="{link controller='FacebookAuth'}{/link}" class="thirdPartyLoginButton facebookLoginButton"><span class="icon icon16 fa-facebook"></span> <span>{lang}wcf.user.3rdparty.facebook.connect{/lang}</span></a>
229 {if GOOGLE_PUBLIC_KEY !== '' && GOOGLE_PRIVATE_KEY !== ''}
231 <dt>{lang}wcf.user.3rdparty.google{/lang}</dt>
233 {if $__wcf->getSession()->getVar('__googleData')}
234 <label><input type="checkbox" name="googleConnect" value="1"{if $googleConnect} checked{/if}> {lang}wcf.user.3rdparty.google.connect{/lang}</label>
236 <a href="{link controller='GoogleAuth'}{/link}" class="thirdPartyLoginButton googleLoginButton"><span class="icon icon16 fa-google-plus"></span> <span>{lang}wcf.user.3rdparty.google.connect{/lang}</span></a>
242 {event name='3rdpartyFields'}
248 {event name='sections'}
250 <div class="formSubmit">
251 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
252 {@SECURITY_TOKEN_INPUT_TAG}
256 {include file='footer' __disableAds=true}