File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
wcfsetup/install/files/lib/acp/form Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 99use wcf \event \user \authentication \UserLoggedIn ;
1010use wcf \form \AbstractForm ;
1111use wcf \form \AbstractFormBuilderForm ;
12+ use wcf \form \LostPasswordForm ;
1213use wcf \system \event \EventHandler ;
1314use wcf \system \exception \NamedUserException ;
1415use wcf \system \exception \UserInputException ;
1920use wcf \system \form \builder \field \validation \FormFieldValidator ;
2021use wcf \system \request \LinkHandler ;
2122use wcf \system \request \RequestHandler ;
23+ use wcf \system \user \authentication \configuration \UserAuthenticationConfigurationFactory ;
2224use wcf \system \user \authentication \DefaultUserAuthentication ;
2325use wcf \system \user \authentication \EmailUserAuthentication ;
2426use wcf \system \user \authentication \LoginRedirect ;
@@ -56,6 +58,14 @@ protected function createForm()
5658 ->maximumLength (255 ),
5759 PasswordFormField::create ('password ' )
5860 ->label ('wcf.user.password ' )
61+ ->description (
62+ UserAuthenticationConfigurationFactory::getInstance ()->getConfigration ()->canChangePassword
63+ ? \sprintf (
64+ '<a href="%s">%s</a> ' ,
65+ StringUtil::encodeHTML (LinkHandler::getInstance ()->getControllerLink (LostPasswordForm::class)),
66+ WCF ::getLanguage ()->getDynamicVariable ('wcf.user.lostPassword ' )
67+ ) : null
68+ )
5969 ->required ()
6070 ->passwordStrengthMeter (false )
6171 ->removeFieldClass ('medium ' )
You can’t perform that action at this time.
0 commit comments