Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Classes/Hook/RestrictModulesHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ public function postUserLookUp(array $params, AbstractUserAuthentication $pObj)
// allow access to live and workspace, if the user is currently in a workspace,
// but the access is removed due to missing usergroup
$GLOBALS['BE_USER']->user['workspace_perms'] = 3;
// Disable all columns except password
$GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array(
'passwordCurrent' => $GLOBALS['TYPO3_USER_SETTINGS']['columns']['passwordCurrent'],
'password' => $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password'],
'password2' => $GLOBALS['TYPO3_USER_SETTINGS']['columns']['password2'],
'savebutton' => array(
'buttonlabel' => 'LLL:EXT:be_secure_pw/Resources/Private/Language/ux_locallang_csh_mod.xml:option_newPassword.savebutton.label',
'label' => '',
'type' => 'button',
'onClick' => 'submit();',
),
);
// Override showitem to remove tabs and all fields except password
$GLOBALS['TYPO3_USER_SETTINGS']['showitem'] = '--div--;LLL:EXT:be_secure_pw/Resources/Private/Language/ux_locallang_csh_mod.xml:option_newPassword.description,passwordCurrent,password,password2,savebutton';
}
}
}
2 changes: 2 additions & 0 deletions Resources/Private/Language/ux_locallang_csh_mod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
<data type="array">
<languageKey index="default" type="array">
<label index="option_newPassword.description">Enter a new and secure password for your backend account:</label>
<label index="option_newPassword.savebutton.label">Update password</label>
</languageKey>
<languageKey index="de" type="array">
<label index="option_newPassword.description">Geben Sie ein neues und sicheres Passwort für Ihren Backend Zugang ein:</label>
<label index="option_newPassword.savebutton.label">Passwort setzen</label>
</languageKey>
</data>
</T3locallang>