Bug #25700 ยป allow_empty_password_when_editing_beuser.patch
task/class.tx_sysaction_task.php | ||
---|---|---|
if (empty($vars['username'])) {
|
||
$errors[] = $GLOBALS['LANG']->getLL('error-username-empty');
|
||
}
|
||
if (empty($vars['password'])) {
|
||
if (empty($vars['password']) && intval(t3lib_div::_GP('be_users_uid')) <= 0) {
|
||
$errors[] = $GLOBALS['LANG']->getLL('error-password-empty');
|
||
}
|
||
if ($vars['key'] !== 'NEW' && !$this->isCreatedByUser($vars['key'], $record)) {
|
||
... | ... | |
// check if the usergroup is allowed
|
||
$vars['usergroup'] = $this->fixUserGroup($vars['usergroup'], $record);
|
||
// check if md5 is used as password encryption
|
||
if (strpos($GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'], 'md5') !== FALSE) {
|
||
if (strpos($GLOBALS['TCA']['be_users']['columns']['password']['config']['eval'], 'md5') !== FALSE && $vars['password'] !== '') {
|
||
$vars['password'] = md5($vars['password']);
|
||
}
|