mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Admin: Add group added to bulk user changes
This commit is contained in:
parent
fdb9040f3f
commit
76ade7bc89
@ -188,6 +188,10 @@ class admin_passwordreset
|
||||
{
|
||||
if(($account = $GLOBALS['egw']->accounts->read($account_id)))
|
||||
{
|
||||
if($content['group'])
|
||||
{
|
||||
$GLOBALS['egw']->accounts->set_memberships(array_merge(array_keys($account['memberships']), $content['group']), $account_id);
|
||||
}
|
||||
if($content['random_pw'])
|
||||
{
|
||||
if(($minlength = $GLOBALS['egw_info']['server']['force_pwd_length']) < 8)
|
||||
|
@ -21,6 +21,7 @@
|
||||
<row>
|
||||
<groupbox id="actions">
|
||||
<caption label="Actions"/>
|
||||
<et2-select-account accountType="groups" id="group" label="Add to group" multiple="true"></et2-select-account>
|
||||
<et2-checkbox label="Set a random password" id="random_pw"></et2-checkbox>
|
||||
<et2-select-bool label="Must change password upon next login" id="mustchangepassword" emptyLabel="Leave unchanged"></et2-select-bool>
|
||||
<et2-select-bool label="Can change password" id="changepassword" onchange="var mustchange=document.getElementById(form::name('mustchangepassword')); if (this.value=='0' && mustchange.value) mustchange.value='0';" emptyLabel="Leave unchanged"></et2-select-bool>
|
||||
|
Loading…
Reference in New Issue
Block a user