forked from extern/egroupware
fix to allow setting "anonymous" flag for other accounts and try to fix Chrome autocomplete
This commit is contained in:
parent
e9c3533c93
commit
f0f4fd2ee3
@ -104,9 +104,9 @@ class admin_cmd_edit_user extends admin_cmd_change_pw
|
|||||||
}
|
}
|
||||||
|
|
||||||
$data['changepassword'] = admin_cmd::parse_boolean($data['changepassword'],$this->account ? null : true);
|
$data['changepassword'] = admin_cmd::parse_boolean($data['changepassword'],$this->account ? null : true);
|
||||||
$data['anonymous'] = admin_cmd::parse_boolean($data['anonymous'],$this->account ? null : false) ||
|
// automatic set anonymous flag for username "anonymous", to not allow to create anonymous user without it
|
||||||
// automatic set anonymous flag for username "anonymous", to not allow to create anonymous user without it
|
$data['anonymous'] = ($data['account_lid'] ?: admin_cmd::$accounts->id2name($this->account)) === 'anonymous' ?
|
||||||
($data['account_lid'] ?: admin_cmd::$accounts->id2name($this->account)) === 'anonymous';
|
true : admin_cmd::parse_boolean($data['anonymous'],$this->account ? null : false);
|
||||||
|
|
||||||
if ($data['mustchangepassword'] && $data['changepassword'])
|
if ($data['mustchangepassword'] && $data['changepassword'])
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<description value="Login ID" for="account_lid"/>
|
<description value="Login ID" for="account_lid"/>
|
||||||
<textbox id="account_lid" class="et2_fullWidth" onchange="app.addressbook.account_change" needed="true"/>
|
<textbox id="account_lid" class="et2_fullWidth" onchange="app.addressbook.account_change" needed="true" autocomplete="new-username"/>
|
||||||
<description/>
|
<description/>
|
||||||
<description value="Expires" for="account_expires"/>
|
<description value="Expires" for="account_expires"/>
|
||||||
<hbox>
|
<hbox>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<description value="Password" for="account_passwd"/>
|
<description value="Password" for="account_passwd"/>
|
||||||
<passwd id="account_passwd" class="et2_fullWidth" onchange="app.addressbook.account_change"/>
|
<passwd id="account_passwdx" class="et2_fullWidth" onchange="app.addressbook.account_change" autocomplete="new-password"/>
|
||||||
<description/>
|
<description/>
|
||||||
<description value="Re-enter password" for="account_passwd_2"/>
|
<description value="Re-enter password" for="account_passwd_2"/>
|
||||||
<passwd id="account_passwd_2" class="et2_fullWidth" onchange="app.addressbook.account_change"/>
|
<passwd id="account_passwd_2" class="et2_fullWidth" onchange="app.addressbook.account_change"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user